Visual Basic (Declaration) | |
---|---|
Public Function CreateLeadDC() As IntPtr |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public IntPtr CreateLeadDC() |
Managed Extensions for C++ | |
---|---|
public: IntPtr CreateLeadDC(); |
C++/CLI | |
---|---|
public: IntPtr CreateLeadDC(); |
Return Value
The Win32 HDC this method creates.This method allows you to create an infinite number of drawing capabilities such as paint, erase, color erase and brush, pen, spray gun, flood fill, color tube, text overlay, curve, line, rectangle, polygon, ellipse, freehand shapes, cut and paste, and more.
All Windows GDI functions can be used to draw to the image using the returned HDC. The HDC must be freed with the DeleteLeadDC method.
If a region is defined for the image, GDI functions act only on the region, not on the entire image.
The DIB driver supports only 1, 4, 8, 16 and 24 bit images. If you are using an image that has some other number of bits per pixel, you must use ColorResolutionCommand to change the image to a bits per pixel value supported by the DIB driver.
For more information, refer to Processing an Image.
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family