LEADTOOLS GDI/GDI+ (Leadtools.Drawing assembly)

GetNearestPixelFormat Method

Show in webframe





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
) 

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

See Also

Reference

RasterImageConverter Class
RasterImageConverter Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.