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



noPalette
Fail if the image is palettized.
Tests this RasterImage to see if it is compatible with the GDI+ Image.

Syntax

Visual Basic (Declaration)  
Public Function TestGdiPlusCompatible( _
   ByVal noPalette As Boolean _
) As RasterGdiPlusIncompatibleReason
Visual Basic (Usage) Copy Code
Dim instance As RasterImage
Dim noPalette As Boolean
Dim value As RasterGdiPlusIncompatibleReason
 
value = instance.TestGdiPlusCompatible(noPalette)
C#  
public RasterGdiPlusIncompatibleReason TestGdiPlusCompatible( 
   bool noPalette
)
C++/CLI  
public:
RasterGdiPlusIncompatibleReason TestGdiPlusCompatible( 
   bool noPalette
) 

Parameters

noPalette
Fail if the image is palettized.

Return Value

Value indicating the compatibility.

Example

For an example, refer to ConvertToGdiPlusImage.

Remarks

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 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also