Web API Reference MapGuide Open Source

MgColor Class Reference
[MgColor]

Inherits MgSerializable.

Inheritance diagram for MgColor:

Inheritance graph
[legend]
List of all members.

Detailed Description

This class stores Alpha, Red, Green and Blue component of a Color.


Public Member Functions

INT16 GetAlpha ()
 return the color alpha value
INT16 GetBlue ()
 return the color blue value
STRING GetColor ()
 Returns Color specified as 0xRRGGBBAA RR - Red component GG - Green component BB - Blue Component AA - Alpha component (optional).
INT16 GetGreen ()
 return the color green value
INT16 GetRed ()
 return the color red value
 MgColor (INT16 red, INT16 green, INT16 blue, INT16 alpha)
 Constructor.
 MgColor (INT16 red, INT16 green, INT16 blue)
 Constructor.
 MgColor (CREFSTRING color)
 Constructor.