Public Member Functions | |
Utils2D () | |
Static Public Member Functions | |
int | CoordsToByteIndex (int x, int y, int stride) |
byte | GetR (int ARGB) |
byte | GetG (int ARGB) |
byte | GetB (int ARGB) |
byte | GetA (int ARGB) |
int | RGBA (byte R, byte G, byte B, byte A) |
int | RGB (byte R, byte G, byte B) |
int | BGRA (byte B, byte G, byte R, byte A) |
short | LoWord (int n) |
short | HiWord (int n) |
byte | LoByte (short n) |
byte | HiByte (short n) |
|
Constructor. |
|
Creates a color from spec. components. The red component. The green component. The blue component. The alpha component. The created color. |
|
Transforms coords to a byte index. X coordinate. Y coordinate. The stride. The byte index. |
|
Returns the alpha component of a color. The color to get the component from. The alpha component. |
|
Returns the blue component of a color. The color to get the component from. The blue component. |
|
Returns the green component of a color. The color to get the component from. The green component. |
|
Returns the red component of a color. The color to get the component from. The red component. |
|
Returns the high byte from a spec. number. The number. The high byte word. |
|
Returns the high word from a spec. number. The number. The high word. |
|
Returns the low byte from a spec. number. The number. The low byte. |
|
Returns the low word from a spec. number. The number. The low word. |
|
Creates a color from spec. components. The red component. The green component. The blue component. The created color. |
|
Creates a color from spec. components. The red component. The green component. The blue component. The alpha component. The created color. |