←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(  
   Leadtools.RasterImage image 
) 
Public Shared Function GetNearestPixelFormat( _ 
   ByVal image As Leadtools.RasterImage _ 
) As PixelFormat 
public: 
static PixelFormat GetNearestPixelFormat(  
   Leadtools.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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Drawing Assembly
Click or drag to resize