←Select platform

GetNearestPixelFormat Method

Summary
Gets the GDI+ System.Drawing.Imaging.PixelFormat that is closest to a source Leadtools.RasterImage data.
Syntax
C#
VB
C++
public static PixelFormat GetNearestPixelFormat( 
   RasterImage image 
) 
Public Shared Function GetNearestPixelFormat( _ 
   ByVal image As RasterImage _ 
) As PixelFormat 
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

Help Version 21.0.2021.3.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Drawing Assembly