Struct Quantizer.Color32
Struct that defines a 32 bpp colour.
Namespace: DotNetNuke.Services.GeneratedImage.ImageQuantization
Assembly: DotNetNuke.dll
Syntax
public struct Color32
Remarks
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.
Constructors
| Improve this Doc View SourceColor32(IntPtr)
Initializes a new instance of the Quantizer.Color32 struct.
Declaration
public Color32(IntPtr pSourcePixel)
Parameters
| Type | Name | Description |
|---|---|---|
| IntPtr | pSourcePixel |
Remarks
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.
Fields
| Improve this Doc View SourceAlpha
Holds the alpha component of the colour.
Declaration
public byte Alpha
Field Value
| Type | Description |
|---|---|
| System.Byte |
Remarks
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.
ARGB
Permits the color32 to be treated as an int32.
Declaration
public int ARGB
Field Value
| Type | Description |
|---|---|
| System.Int32 |
Remarks
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.
Blue
Holds the blue component of the colour.
Declaration
public byte Blue
Field Value
| Type | Description |
|---|---|
| System.Byte |
Remarks
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.
Green
Holds the green component of the colour.
Declaration
public byte Green
Field Value
| Type | Description |
|---|---|
| System.Byte |
Remarks
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.
Red
Holds the red component of the colour.
Declaration
public byte Red
Field Value
| Type | Description |
|---|---|
| System.Byte |
Remarks
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.
Properties
| Improve this Doc View SourceColor
Gets return the color for this Color32 object.
Declaration
public readonly Color Color { get; }
Property Value
| Type | Description |
|---|---|
| Color |
Remarks
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.