C# Класс OpenTK.Graphics.ColorFormat

Defines the ColorFormat component of a GraphicsMode.
A ColorFormat contains Red, Green, Blue and Alpha components that descibe the allocated bits per pixel for the corresponding color.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ColorFormat ( int bpp ) : System

Constructs a new ColorFormat with the specified aggregate bits per pixel.

ColorFormat ( int red, int green, int blue, int alpha ) : System

Constructs a new ColorFormat with the specified bits per pixel for the Red, Green, Blue and Alpha color channels.

Equals ( object obj ) : bool

Indicates whether this instance and a specified object are equal.

GetHashCode ( ) : int

Returns the hash code for this instance.

ToString ( ) : string

Returns a System.String that describes this instance.

operator ( ) : bool

Compares two instances for equality.

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

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

Constructs a new ColorFormat with the specified aggregate bits per pixel.
public ColorFormat ( int bpp ) : System
bpp int The bits per pixel sum for the Red, Green, Blue and Alpha color channels.
Результат System

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

Constructs a new ColorFormat with the specified bits per pixel for the Red, Green, Blue and Alpha color channels.
public ColorFormat ( int red, int green, int blue, int alpha ) : System
red int Bits per pixel for the Red color channel.
green int Bits per pixel for the Green color channel.
blue int Bits per pixel for the Blue color channel.
alpha int Bits per pixel for the Alpha color channel.
Результат System

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

Indicates whether this instance and a specified object are equal.
public Equals ( object obj ) : bool
obj object Another object to compare to.
Результат bool

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

Returns the hash code for this instance.
public GetHashCode ( ) : int
Результат int

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

Returns a System.String that describes this instance.
public ToString ( ) : string
Результат string

operator() публичный статический Метод

Compares two instances for equality.
public static operator ( ) : bool
Результат bool