Class Image
Stores a window icon. A window icon is defined as a 2-dimensional buffer of RGBA values.
Inherited Members
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 |