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



pixelFormat
The pixel format to use.
noPalette
Fail if the image is palettized.
Makes this RasterImage GDI+ compatible.

Syntax

Visual Basic (Declaration)  
Public Sub MakeGdiPlusCompatible( _
   ByVal pixelFormat As PixelFormat, _
   ByVal noPalette As Boolean _
) 
Visual Basic (Usage) Copy Code
Dim instance As RasterImage
Dim pixelFormat As PixelFormat
Dim noPalette As Boolean
 
instance.MakeGdiPlusCompatible(pixelFormat, noPalette)
C#  
public void MakeGdiPlusCompatible( 
   PixelFormat pixelFormat,
   bool noPalette
)
C++/CLI  
public:
void MakeGdiPlusCompatible( 
   PixelFormat pixelFormat,
   bool noPalette
) 

Parameters

pixelFormat
The pixel format to use.
noPalette
Fail if the image is palettized.

Example

For an example, refer to ConvertToGdiPlusImage

Remarks

Pass DontCare to the pixelFormat parameter to have the method choose the appropriate pixel format.

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

This method will make one or more of the changes above to the RasterImage if needed.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also