C# Class 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.
Afficher le fichier Open project: prepare/HTML-Renderer Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

ColorFormat() public méthode

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.
Résultat System

ColorFormat() public méthode

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.
Résultat System

Equals() public méthode

Indicates whether this instance and a specified object are equal.
public Equals ( object obj ) : bool
obj object Another object to compare to.
Résultat bool

GetHashCode() public méthode

Returns the hash code for this instance.
public GetHashCode ( ) : int
Résultat int

ToString() public méthode

Returns a System.String that describes this instance.
public ToString ( ) : string
Résultat string

operator() public static méthode

Compares two instances for equality.
public static operator ( ) : bool
Résultat bool