gdi function test