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.
파일 보기 프로젝트 열기: prepare/HTML-Renderer 1 사용 예제들

공개 메소드들

메소드 설명
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