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

GetNearestPixelFormat Method






The source image.
Gets the GDI+ System.Drawing.Imaging.PixelFormat that is closest to a source Leadtools.RasterImage data.
Syntax
public static PixelFormat GetNearestPixelFormat( 
   RasterImage image
)
'Declaration
 
Public Shared Function GetNearestPixelFormat( _
   ByVal image As RasterImage _
) As PixelFormat
'Usage
 
Dim image As RasterImage
Dim value As PixelFormat
 
value = RasterImageConverter.GetNearestPixelFormat(image)
public static PixelFormat GetNearestPixelFormat( 
   RasterImage image
)
 function Leadtools.Drawing.RasterImageConverter.GetNearestPixelFormat( 
   image 
)
public:
static PixelFormat GetNearestPixelFormat( 
   RasterImage^ image
) 

Parameters

image
The source image.
Remarks

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

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

Example
For an example, refer to MakeCompatible example.
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.