Show / Hide Table of Contents

Class Image

Stores a window icon. A window icon is defined as a 2-dimensional buffer of RGBA values.

Inheritance
object
Image
MouseCursor
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: OpenTK.Windowing.Common.Input
Assembly: OpenTK.Windowing.Common.dll
Syntax
public class Image

Constructors

Image()

Initializes a new instance of the Image class.

Declaration
protected Image()

Image(int, int, byte[])

Initializes a new instance of the Image class.

Declaration
public Image(int width, int height, byte[] data)
Parameters
Type Name Description
int width

The icon pixel width.

int height

The icon pixel height.

byte[] data

The RGBA pixel data of the icon.

Properties

Data

Gets the RGBA pixel data of the icon.

Declaration
public byte[] Data { get; }
Property Value
Type Description
byte[]

Height

Gets the icon pixel height.

Declaration
public int Height { get; }
Property Value
Type Description
int

Width

Gets the icon pixel width.

Declaration
public int Width { get; }
Property Value
Type Description
int
In This Article
Back to top Generated by DocFX