Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
MakeGdiPlusCompatible Method
See Also 
Leadtools Namespace > RasterImage Class : MakeGdiPlusCompatible Method




pixelFormat
The pixel format to use.
noPalette
Fail if the image is palettized.
Makes this RasterImage GDI+ compatible.

Syntax

Visual Basic (Declaration) 
Public Sub MakeGdiPlusCompatible( _
   ByVal pixelFormat As PixelFormat, _
   ByVal noPalette As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim pixelFormat As PixelFormat
Dim noPalette As Boolean
 
instance.MakeGdiPlusCompatible(pixelFormat, noPalette)
C# 
public void MakeGdiPlusCompatible( 
   PixelFormat pixelFormat,
   bool noPalette
)
Managed Extensions for C++ 
public: void MakeGdiPlusCompatible( 
   PixelFormat pixelFormat,
   bool noPalette
) 
C++/CLI 
public:
void MakeGdiPlusCompatible( 
   PixelFormat pixelFormat,
   bool noPalette
) 

Parameters

pixelFormat
The pixel format to use.
noPalette
Fail if the image is palettized.

Example

For an example, refer to ConvertToGdiPlusImage

Remarks

Pass DontCare to the pixelFormat parameter to have the method choose the appropriate pixel format.

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

This method will make one or more of the changes above to the RasterImage if needed.

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