Class Bitmap
Represents a simple bitmap in a RGBA8 format.
Inherited Members
Namespace: OpenTK.Core.Platform
Assembly: OpenTK.Core.dll
Syntax
public class Bitmap
Constructors
Bitmap(int, int, byte[])
Initializes a new instance of the Bitmap class with the specified width, height and pixel data.
Declaration
public Bitmap(int width, int height, byte[] data)
Parameters
Type | Name | Description |
---|---|---|
int | width | The width of the bitmap. |
int | height | The height of the bitmap. |
byte[] | data | The pixel data of the bitmap. |
Properties
Data
An array of RGBA8 bytes.
Declaration
public byte[] Data { get; }
Property Value
Type | Description |
---|---|
byte[] |
Height
The height of the bitmap in pixels.
Declaration
public int Height { get; }
Property Value
Type | Description |
---|---|
int |
Width
The width of the bitmap in pixels.
Declaration
public int Width { get; }
Property Value
Type | Description |
---|---|
int |