Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
GetNearestBitsPerPixel Method
See Also 
Leadtools Namespace > RasterImage Class : GetNearestBitsPerPixel Method




pixelFormat
The input pixel format.
Gets the nearest bits per pixel value supported by LEAD for the specified GDI+ pixel format.

Syntax

Visual Basic (Declaration) 
Public Shared Function GetNearestBitsPerPixel( _
   ByVal pixelFormat As PixelFormat _
) As Integer
Visual Basic (Usage)Copy Code
Dim pixelFormat As PixelFormat
Dim value As Integer
 
value = RasterImage.GetNearestBitsPerPixel(pixelFormat)
C# 
public static int GetNearestBitsPerPixel( 
   PixelFormat pixelFormat
)
Managed Extensions for C++ 
public: static int GetNearestBitsPerPixel( 
   PixelFormat pixelFormat
) 
C++/CLI 
public:
static int GetNearestBitsPerPixel( 
   PixelFormat pixelFormat
) 

Parameters

pixelFormat
The input pixel format.

Return Value

The nearest bits per pixel value supported by LEAD for the specified image pixel format.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also