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.
Mostra file Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method 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 method

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.
return System

ColorFormat() public method

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.
return System

Equals() public method

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

GetHashCode() public method

Returns the hash code for this instance.
public GetHashCode ( ) : int
return int

ToString() public method

Returns a System.String that describes this instance.
public ToString ( ) : string
return string

operator() public static method

Compares two instances for equality.
public static operator ( ) : bool
return bool