[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.-ctor

GcSkiaBitmap Constructor

GcSkiaBitmap()

Initializes a new empty instance of the GcSkiaBitmap class.

Declaration
public GcSkiaBitmap()
Public Sub New()

GcSkiaBitmap(int, int, bool)

Initializes a new instance of the GcSkiaBitmap class and creates the image.

Declaration
public GcSkiaBitmap(int pixelWidth, int pixelHeight, bool opaque = false)
Public Sub New(pixelWidth As Integer, pixelHeight As Integer, Optional opaque As Boolean = False)
Parameters
Type Name Description
int pixelWidth

The width of the image, in pixels.

int pixelHeight

The height of the image, in pixels.

bool opaque

Indicates whether the alpha channel should be ignored.

GcSkiaBitmap(Stream, Rectangle?)

Initializes a new instance of the GcSkiaBitmap class.

Declaration
public GcSkiaBitmap(Stream stream, Rectangle? clipRect = null)
Public Sub New(stream As Stream, Optional clipRect As Rectangle? = Nothing)
Parameters
Type Name Description
Stream stream

The source stream. JPEG, PNG, WEBP formats are supported.

Rectangle? clipRect

Clipping rectangle of the image to be loaded.

GcSkiaBitmap(string, Rectangle?)

Initializes a new instance of the GcSkiaBitmap class.

Declaration
public GcSkiaBitmap(string filePath, Rectangle? clipRect = null)
Public Sub New(filePath As String, Optional clipRect As Rectangle? = Nothing)
Parameters
Type Name Description
string filePath

The file path to the image. JPEG, PNG, WEBP formats are supported.

Rectangle? clipRect

Clipping rectangle of the image to be loaded.

GcSkiaBitmap(Image, Rectangle?)

Initializes a new instance of the GcSkiaBitmap class.

Declaration
public GcSkiaBitmap(Image image, Rectangle? clipRect = null)
Public Sub New(image As Image, Optional clipRect As Rectangle? = Nothing)
Parameters
Type Name Description
Image image

Image used as the source of image data. JPEG, PNG and WEBP formats are supported.

Rectangle? clipRect

Clipping rectangle of the image to be loaded.

GcSkiaBitmap(GcBitmap)

Initializes a new instance of the GcSkiaBitmap class.

Declaration
public GcSkiaBitmap(GcBitmap bmp)
Public Sub New(bmp As GcBitmap)
Parameters
Type Name Description
GcBitmap bmp

The source GcBitmap.