Initializes a new instance of the Bitmap class with the specified data.
A buffer that contains binary image data. This can either be a binary png- or jpeg-image, or a raw pixel buffer.
In case the data buffer contains raw pixel data, it's necessary to specify the data layout of the buffer.
Loads the size and resolution of the image.
Loads a bitmap that is stored in the extension package. The specified path must be relative to the packages output directory, which has been specified with the outDir
parameter in the tsconfig.json
file.
The relative path to a bitmap file.
In case the file contains raw pixel data, it's necessary to specify the data layout of the file.
Generated using TypeDoc
Describes an image that can be drawn to a DrawingContext.