←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 20.0.2018.6.20
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Drawing Assembly