←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 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

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Drawing Assembly