[dllimport("gdi32.dll")] public static extern intptr createdc( string lpszdriver, // driver name string lpszdevice, // device name string lpszoutput, // not used; should be null int64 lpinitdata // optional printer data );
[dllimport("gdi32.dll")] public static extern intptr createcompatibledc( intptr hdc // handle to dc );
[dllimport("gdi32.dll")] public static extern int getdevicecaps( intptr hdc, // handle to dc getdevicecapsindex nindex // index of capability );
[dllimport("gdi32.dll")] public static extern intptr createcompatiblebitmap( intptr hdc, // handle to dc int nwidth, // width of bitmap, in pixels int nheight // height of bitmap, in pixels );
[dllimport("gdi32.dll")] public static extern intptr selectobject( intptr hdc, // handle to dc intptr hgdiobj // handle to object );
[dllimport("gdi32.dll")] public static extern int bitblt( intptr hdcdest, // handle to destination dc int nxdest, // x-coord of destination upper-left corner int nydest, // y-coord of destination upper-left corner int nwidth, // width of destination rectangle int nheight, // height of destination rectangle intptr hdcsrc, // handle to source dc int nxsrc, // x-coordinate of source upper-left corner int nysrc, // y-coordinate of source upper-left corner uint32 dwrop // raster operation code );
[dllimport("gdi32.dll")] public static extern int deletedc( intptr hdc // handle to dc );