Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
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
)
Managed Extensions for 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 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