C# Class Evbpc.Framework.Drawing.Color

ファイルを表示 Open project: EBrown8534/Framework

Public Properties

Property Type Description
Presets List

Public Methods

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

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.
return Evbpc.Framework.Utilities.Serialization

Color() public method

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.
return Evbpc.Framework.Utilities.Serialization

Color() public method

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 .
return Evbpc.Framework.Utilities.Serialization

Equals() public method

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

FromBytes() public method

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

GetBytes() public method

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

GetHashCode() public method

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

GetPackedValue() public method

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

operator() public static method

Determines whether two Color objects have the same value.
public static operator ( ) : bool
return 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
return List