Show / Hide Table of Contents

Class Bitmap

Represents a simple bitmap in a RGBA8 format.

Inheritance
object
Bitmap
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: OpenTK.Platform
Assembly: OpenTK.Platform.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
In this article
Back to top Generated by DocFX