C# Class Evbpc.Framework.Drawing.Color

Afficher le fichier Open project: EBrown8534/Framework

Méthodes publiques

Свойство Type Description
Presets List

Méthodes publiques

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

Method Details

Color() public méthode

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.
Résultat Evbpc.Framework.Utilities.Serialization

Color() public méthode

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.
Résultat Evbpc.Framework.Utilities.Serialization

Color() public méthode

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 .
Résultat Evbpc.Framework.Utilities.Serialization

Equals() public méthode

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

FromBytes() public méthode

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

GetBytes() public méthode

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

GetHashCode() public méthode

Gets the hash code for the current Color object.
public GetHashCode ( ) : int
Résultat int

GetPackedValue() public méthode

Returns the packed uint for storage.
public GetPackedValue ( ) : uint
Résultat uint

operator() public static méthode

Determines whether two Color objects have the same value.
public static operator ( ) : bool
Résultat bool

Property Details

Presets public_oe static_oe property

A list of Color objects that correspond to the Color.Preset enumeration values.
public static List Presets
Résultat List