LEADTOOLS GDI/GDI+ (Leadtools.Drawing assembly)
LEAD Technologies, Inc

TestCompatible Method






The source image.
Fails if the image is palletized.
Tests a Leadtools.RasterImage to see if it is compatible with the GDI+ Image.
Syntax
public static ImageIncompatibleReason TestCompatible( 
   RasterImage image,
   bool noPalette
)
'Declaration
 
Public Shared Function TestCompatible( _
   ByVal image As RasterImage, _
   ByVal noPalette As Boolean _
) As ImageIncompatibleReason
'Usage
 
Dim image As RasterImage
Dim noPalette As Boolean
Dim value As ImageIncompatibleReason
 
value = RasterImageConverter.TestCompatible(image, noPalette)
public static ImageIncompatibleReason TestCompatible( 
   RasterImage image,
   bool noPalette
)
 function Leadtools.Drawing.RasterImageConverter.TestCompatible( 
   image ,
   noPalette 
)
public:
static ImageIncompatibleReason TestCompatible( 
   RasterImage^ image,
   bool noPalette
) 

Parameters

image
The source image.
noPalette
Fails if the image is palletized.

Return Value

Value indicating the compatibility.
Remarks

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

For more information, refer to Using The PaintEngine Property.

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

Example
For an example, refer to MakeCompatible.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterImageConverter Class
RasterImageConverter Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.