LEADTOOLS GDI/GDI+ (Leadtools.Drawing assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
TestCompatible Method
See Also 



image
The source image.
noPalette
Fail if the image is palettized.
image
The source image.
noPalette
Fail if the image is palettized.
Tests a Leadtools.RasterImage to see if it is compatible with the GDI+ Image.

Syntax

Visual Basic (Declaration) 
Public Shared Function TestCompatible( _
   ByVal image As RasterImage, _
   ByVal noPalette As Boolean _
) As ImageIncompatibleReason
Visual Basic (Usage)Copy Code
Dim image As RasterImage
Dim noPalette As Boolean
Dim value As ImageIncompatibleReason
 
value = RasterImageConverter.TestCompatible(image, noPalette)
C# 
public static ImageIncompatibleReason TestCompatible( 
   RasterImage image,
   bool noPalette
)
C++/CLI 
public:
static ImageIncompatibleReason TestCompatible( 
   RasterImage^ image,
   bool noPalette
) 

Parameters

image
The source image.
noPalette
Fail if the image is palettized.

Return Value

Value indicating the compatibility.

Example

For an example, refer to MakeCompatible.

Remarks

For a Leadtools.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.

For more information refer to RasterImage and GDI/GDI+.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also