Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

GetAlpha
GetBlue
GetColor
GetGreen
GetRed
MgColor
MgColor
MgColor
MgColor::MgColor | ( | INT16 | red,
|  | INT16 | green,
|  | INT16 | blue,
|  | INT16 | alpha |
| ) |  |  |
Constructor. .NET Syntax
`MgColor(short red, short green, short blue, short alpha);`
Java Syntax
`MgColor(short red, short green, short blue, short alpha);`
PHP Syntax
`MgColor(int red, int green, int blue, int alpha);`
  Parameters:
  | red | (short/int) Red value. This value must be in the range of 0 to 255 inclusive.
  | green | (short/int) Green value. This value must be in the range of 0 to 255 inclusive.
  | blue | (short/int) Blue value. This value must be in the range of 0 to 255 inclusive.
  | alpha | (short/int) Alpha value
Returns: Nothing

Comments or suggestions? Send us feedback.