C# Класс Evbpc.Framework.Drawing.Color

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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