Show / Hide Table of Contents

Class ColorSerialized

Serializable (pure-data) object representing a Color.

Inheritance
Object
ColorSerialized
Namespace: SadRogue.Primitives.SerializedTypes
Assembly: TheSadRogue.Primitives.dll
Syntax
public sealed class ColorSerialized : ValueType

Fields

A

Alpha-value for the color.

Declaration
public byte A
Field Value
Type Description
Byte

B

"B" value for the color.

Declaration
public byte B
Field Value
Type Description
Byte

G

"G" value for the color.

Declaration
public byte G
Field Value
Type Description
Byte

R

"R" value for the color.

Declaration
public byte R
Field Value
Type Description
Byte

Operators

Implicit(Color to ColorSerialized)

Converts Color to ColorSerialized.

Declaration
public static implicit operator ColorSerialized(Color color)
Parameters
Type Name Description
Color color
Returns
Type Description
ColorSerialized

Implicit(ColorSerialized to Color)

Converts ColorSerialized to Color.

Declaration
public static implicit operator Color(ColorSerialized color)
Parameters
Type Name Description
ColorSerialized color
Returns
Type Description
Color

Extension Methods

PropertyChangedEventHelpers.SafelySetProperty<TObject, TProperty>(TObject, ref TProperty, TProperty, EventHandler<ValueChangedEventArgs<TProperty>>)
PropertyChangedEventHelpers.SafelySetProperty<TObject, TProperty>(TObject, ref TProperty, TProperty, EventHandler<ValueChangedEventArgs<TProperty>>, EventHandler<ValueChangedEventArgs<TProperty>>)
In This Article
Back to top Generated by DocFX