C# 클래스 Evbpc.Framework.Drawing.Color

파일 보기 프로젝트 열기: EBrown8534/Framework

공개 프로퍼티들

프로퍼티 타입 설명
Presets List

공개 메소드들

메소드 설명
Color ( byte r, byte g, byte b ) : Evbpc.Framework.Utilities.Serialization

Creates an instance of a Color with a default alpha of 255.

Color ( byte r, byte g, byte b, byte a ) : Evbpc.Framework.Utilities.Serialization

Creates an instance of a Color.

Color ( uint packedValue ) : Evbpc.Framework.Utilities.Serialization

Creates an instance of a Color from a packed value.

Equals ( object obj ) : bool

Determines whether an object is a Color and is equal to the current Color object.

FromBytes ( byte data ) : void

Inherited from ISerializableByteArray. Builds the current Color object from the specified byte-array.

GetBytes ( ) : byte[]

Inherited from ISerializableByteArray. Gets the byte-array for the current Color object.

GetHashCode ( ) : int

Gets the hash code for the current Color object.

GetPackedValue ( ) : uint

Returns the packed uint for storage.

operator ( ) : bool

Determines whether two Color objects have the same value.

메소드 상세

Color() 공개 메소드

Creates an instance of a Color with a default alpha of 255.
public Color ( byte r, byte g, byte b ) : Evbpc.Framework.Utilities.Serialization
r byte The red byte component.
g byte The green byte component.
b byte The blue byte component.
리턴 Evbpc.Framework.Utilities.Serialization

Color() 공개 메소드

Creates an instance of a Color.
public Color ( byte r, byte g, byte b, byte a ) : Evbpc.Framework.Utilities.Serialization
r byte The red byte component.
g byte The green byte component.
b byte The blue byte component.
a byte The alpha byte component.
리턴 Evbpc.Framework.Utilities.Serialization

Color() 공개 메소드

Creates an instance of a Color from a packed value.
public Color ( uint packedValue ) : Evbpc.Framework.Utilities.Serialization
packedValue uint The original packed value of the .
리턴 Evbpc.Framework.Utilities.Serialization

Equals() 공개 메소드

Determines whether an object is a Color and is equal to the current Color object.
public Equals ( object obj ) : bool
obj object The object to compare.
리턴 bool

FromBytes() 공개 메소드

Inherited from ISerializableByteArray. Builds the current Color object from the specified byte-array.
public FromBytes ( byte data ) : void
data byte A byte-array that represents a object.
리턴 void

GetBytes() 공개 메소드

Inherited from ISerializableByteArray. Gets the byte-array for the current Color object.
public GetBytes ( ) : byte[]
리턴 byte[]

GetHashCode() 공개 메소드

Gets the hash code for the current Color object.
public GetHashCode ( ) : int
리턴 int

GetPackedValue() 공개 메소드

Returns the packed uint for storage.
public GetPackedValue ( ) : uint
리턴 uint

operator() 공개 정적인 메소드

Determines whether two Color objects have the same value.
public static operator ( ) : bool
리턴 bool

프로퍼티 상세

Presets 공개적으로 정적으로 프로퍼티

A list of Color objects that correspond to the Color.Preset enumeration values.
public static List Presets
리턴 List