Quantizer.Color32 Struct

Namespace:
Weavy.Core.Imaging
Assembly:
Weavy.Core.dll

Struct that defines a 32 bpp colour

This struct is used to read data from a 32 bits per pixel image in memory, and is ordered in this manner as this is the way that the data is layed out in memory

public struct Color32

Constructors

Color32(Color)
Color32(IntPtr)

Fields

Alpha Holds the alpha component of the colour
ARGB Permits the color32 to be treated as an int32
Blue Holds the blue component of the colour
Green Holds the green component of the colour
Red Holds the red component of the colour

Properties

Color Return the color for this Color32 object

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(object, Formatting?, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.