Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
CreateGdiPlusGraphics Method
See Also 
Leadtools Namespace > RasterImage Class : CreateGdiPlusGraphics Method




Creates a GDI+ Graphics object using this RasterImage as the display surface.

Syntax

Visual Basic (Declaration) 
Public Function CreateGdiPlusGraphics() As RasterImageGdiPlusGraphicsContainer
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim value As RasterImageGdiPlusGraphicsContainer
 
value = instance.CreateGdiPlusGraphics()
C# 
public RasterImageGdiPlusGraphicsContainer CreateGdiPlusGraphics()
Managed Extensions for C++ 
public: RasterImageGdiPlusGraphicsContainer* CreateGdiPlusGraphics(); 
C++/CLI 
public:
RasterImageGdiPlusGraphicsContainer^ CreateGdiPlusGraphics(); 

Return Value

The RasterImageGdiPlusGraphicsContainer object this method creates.

Example

This example loads an image then gets a Graphics object for its surface.

Remarks

Use RasterImage.TestGdiPlusCompatible to determine if the image is compatible for creating a GDI+ Graphics object.

This 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 to use on the surface of this RasterImage.

For more information, refer to Processing an Image.

Requirements

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

See Also