C# Класс OpenBveApi.Texture.Texture

Represents a texture.
Показать файл Открыть проект

Открытые методы

Метод Описание
Texture ( int width, int height, byte bytes ) : System

Creates a new instance of this class.

Описание методов

Texture() публичный Метод

Creates a new instance of this class.
Raised when the byte array is a null reference. Raised when the length of the byte array is not 4 * width * height.
public Texture ( int width, int height, byte bytes ) : System
width int The width of the texture in pixels.
height int The height of the texture in pixels.
bytes byte The RGBA texture data. Pixels are stored row-based from top to bottom, and within a row from left to right. All pixels take four bytes in the order red, green, blue, alpha.
Результат System