Struct Image
Contains GLFW Image data.
Inherited Members
Namespace: OpenTK.Windowing.GraphicsLibraryFramework
Assembly: OpenTK.Windowing.GraphicsLibraryFramework.dll
Syntax
public struct Image
Constructors
Image(int, int, byte*)
Initializes a new instance of the Image struct.
Declaration
public Image(int width, int height, byte* pixels)
Parameters
Type | Name | Description |
---|---|---|
int | width | The width of the image in pixels. |
int | height | The height of the image in pixels. |
byte* | pixels | IntPtr pointing to the RGBA pixel data of the image. |
Fields
Height
The height, in pixels, of this Image.
Declaration
public int Height
Field Value
Type | Description |
---|---|
int |
Pixels
A byte pointer pointing to the RGBA pixel data.
Declaration
public byte* Pixels
Field Value
Type | Description |
---|---|
byte* |
Width
The width, in pixels, of this Image.
Declaration
public int Width
Field Value
Type | Description |
---|---|
int |