[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.Windows.GcWicBitmap.ToGcBitmap

ToGcBitmap Method

ToGcBitmap(bool)

Stores the image buffer to a GcBitmap.

Declaration
public GcBitmap ToGcBitmap(bool updatePixelFormat = false)
Public Function ToGcBitmap(Optional updatePixelFormat As Boolean = False) As GcBitmap
Parameters
Type Name Description
bool updatePixelFormat

Indicates if all pixels should be converted from premultiplied alpha format or to opaque format with alpha = 255.

Returns
Type Description
GcBitmap

ToGcBitmap(Rectangle, bool)

Stores a rectangular area of the image to a GcBitmap.

Declaration
public GcBitmap ToGcBitmap(Rectangle srcRect, bool updatePixelFormat = false)
Public Function ToGcBitmap(srcRect As Rectangle, Optional updatePixelFormat As Boolean = False) As GcBitmap
Parameters
Type Name Description
Rectangle srcRect

The source rectangle within the image.

bool updatePixelFormat

Indicates if all pixels should be converted from premultiplied alpha format or to opaque format with alpha = 255.

Returns
Type Description
GcBitmap

ToGcBitmap(GcBitmap, bool)

Stores the image buffer into an existing instance of GcBitmap.

Declaration
public void ToGcBitmap(GcBitmap bmp, bool updatePixelFormat = false)
Public Sub ToGcBitmap(bmp As GcBitmap, Optional updatePixelFormat As Boolean = False)
Parameters
Type Name Description
GcBitmap bmp

The destination GcBitmap object.

bool updatePixelFormat

Indicates if all pixels should be converted from premultiplied alpha format or to opaque format with alpha = 255.