| Visual Basic (Declaration) | |
|---|---|
Public Function TestGdiPlusCompatible( _ ByVal noPalette As Boolean _ ) As RasterGdiPlusIncompatibleReason  | |
| Visual Basic (Usage) |  Copy Code | 
|---|---|
 | |
| 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.For an example, refer to ConvertToGdiPlusImage. 
For a RasterImage to be compatible with a GDI+ image it needs the following:
IsConventionalMemory to be true (Tiled, compressed and disk-based images are not supported) BitsPerPixel value of 1, 4, 8, 16, 24 or 32 Order value of RasterByteOrder.Rgb or RasterByteOrder.Bgr Not a gray scale image. ViewPerspective value of RasterViewPerspective.TopLeft 
For more information, refer to The RasterPaintEngine Property and 16bpp Grayscale Images and Using The PaintEngine Property.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family