- image
- The source image.
- noPalette
- Fail if the image is palettized.
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.For an example, refer to MakeCompatible.
For a Leadtools.RasterImage to be compatible with a GDI+ image it needs the following:
- RasterImage.IsConventionalMemory to be true (Tiled, compressed and disk-based images are not supported)
- RasterImage.BitsPerPixel value of 1, 4, 8, 16, 24 or 32
- RasterImage.Order value of RasterByteOrder.Rgb or RasterByteOrder.Bgr
- Not a gray scale image.
- RasterImage.ViewPerspective value of RasterViewPerspective.TopLeft
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+.
Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)