[]
Initializes a new empty instance of the GcSkiaBitmap class.
public GcSkiaBitmap()
Public Sub New()
Initializes a new instance of the GcSkiaBitmap class and creates the image.
public GcSkiaBitmap(int pixelWidth, int pixelHeight, bool opaque = false)
Public Sub New(pixelWidth As Integer, pixelHeight As Integer, Optional opaque As Boolean = False)
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. |
Initializes a new instance of the GcSkiaBitmap class.
public GcSkiaBitmap(Stream stream, Rectangle? clipRect = null)
Public Sub New(stream As Stream, Optional clipRect As Rectangle? = Nothing)
Type | Name | Description |
---|---|---|
Stream | stream | The source stream. JPEG, PNG, WEBP formats are supported. |
Rectangle? | clipRect | Clipping rectangle of the image to be loaded. |
Initializes a new instance of the GcSkiaBitmap class.
public GcSkiaBitmap(string filePath, Rectangle? clipRect = null)
Public Sub New(filePath As String, Optional clipRect As Rectangle? = Nothing)
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. |
Initializes a new instance of the GcSkiaBitmap class.
public GcSkiaBitmap(Image image, Rectangle? clipRect = null)
Public Sub New(image As Image, Optional clipRect As Rectangle? = Nothing)
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. |
Initializes a new instance of the GcSkiaBitmap class.
public GcSkiaBitmap(GcBitmap bmp)
Public Sub New(bmp As GcBitmap)
Type | Name | Description |
---|---|---|
GcBitmap | bmp | The source GcBitmap. |