SpreadsheetGear 2023
GetBitmap(PixelFormat) Method


SpreadsheetGear.Drawing Namespace > Image Class > GetBitmap Method : GetBitmap(PixelFormat) Method
Specifies the pixel format to use when creating the bitmap.
Creates and returns a new bitmap image of the represented range or shape using the specified pixel format.
Syntax
'Declaration
 
Public Overloads Function GetBitmap( _
   ByVal pixelFormat As System.Drawing.Imaging.PixelFormat _
) As System.Drawing.Bitmap
'Usage
 
Dim instance As Image
Dim pixelFormat As System.Drawing.Imaging.PixelFormat
Dim value As System.Drawing.Bitmap
 
value = instance.GetBitmap(pixelFormat)
public System.Drawing.Bitmap GetBitmap( 
   System.Drawing.Imaging.PixelFormat pixelFormat
)

Parameters

pixelFormat
Specifies the pixel format to use when creating the bitmap.

Return Value

A new bitmap image of the represented range or shape using the specified pixel format.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Image Class
Image Members
Overload List