SpreadsheetGear 2012
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.Windows.Media.PixelFormat _
) As System.Windows.Media.Imaging.BitmapSource
'Usage
 
Dim instance As Image
Dim pixelFormat As System.Windows.Media.PixelFormat
Dim value As System.Windows.Media.Imaging.BitmapSource
 
value = instance.GetBitmap(pixelFormat)
public System.Windows.Media.Imaging.BitmapSource GetBitmap( 
   System.Windows.Media.PixelFormat pixelFormat
)
public function GetBitmap( 
    pixelFormat: System.Windows.Media.PixelFormat
): System.Windows.Media.Imaging.BitmapSource; 
public function GetBitmap( 
   pixelFormat : System.Windows.Media.PixelFormat
) : System.Windows.Media.Imaging.BitmapSource;
public: System.Windows.Media.Imaging.BitmapSource* GetBitmap( 
   System.Windows.Media.PixelFormat pixelFormat
) 
public:
System.Windows.Media.Imaging.BitmapSource^ GetBitmap( 
   System.Windows.Media.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

Send Feedback