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




flags
Options for the conversion.
Changes this RasterImage to a GDI+ Image.

Syntax

Visual Basic (Declaration) 
Public Function ChangeToGdiPlusImage( _
   ByVal flags As ChangeToGdiPlusImageFlags _
) As Image
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim flags As ChangeToGdiPlusImageFlags
Dim value As Image
 
value = instance.ChangeToGdiPlusImage(flags)
C# 
public Image ChangeToGdiPlusImage( 
   ChangeToGdiPlusImageFlags flags
)
Managed Extensions for C++ 
public: Image ChangeToGdiPlusImage( 
   ChangeToGdiPlusImageFlags flags
) 
C++/CLI 
public:
Image ChangeToGdiPlusImage( 
   ChangeToGdiPlusImageFlags flags
) 

Parameters

flags
Options for the conversion.

Return Value

The GDI+ image that this method creates.

Example

This example changes between a RasterImage and a GDI+ image

Remarks

This result GDI+ image and this RasterImage object will share the same image data. You can use this method to pass a LEAD RasterImage object to other class library methods that expect a GDI+ Image object. Use the ConvertToGdiPlusImage method to obtain a GDI+ Image object that is a copy of this RasterImage object.

Calling this method may change the internal format of this RasterImage object.

Use RasterImage.TestGdiPlusCompatible to determine if the image is compatible for conversion to a GDI+ image.

For a RasterImage to be compatible with a GDI+ image it needs the following:

For more information, refer to The RasterPaintEngine Property and 16bpp Grayscale Images and Using The PaintEngine Property.

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