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



image
The source image.
image
The source image.
Gets the GDI+ System.Drawing.Imaging.PixelFormat that is closest to a source Leadtools.RasterImage data.

Syntax

Visual Basic (Declaration) 
Public Shared Function GetNearestPixelFormat( _
   ByVal image As RasterImage _
) As PixelFormat
Visual Basic (Usage)Copy Code
Dim image As RasterImage
Dim value As PixelFormat
 
value = RasterImageConverter.GetNearestPixelFormat(image)
C# 
public static PixelFormat GetNearestPixelFormat( 
   RasterImage image
)
C++/CLI 
public:
static PixelFormat GetNearestPixelFormat( 
   RasterImage^ image
) 

Parameters

image
The source image.

Example

For an example, refer to MakeCompatible example.

Remarks

You can pass the value returned from this property to the MakeCompatible method.

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