Personal tools
You are here: Home Documentation References PHP/Mapscript Class Reference Classes ColorObj Class

4.2. ColorObj Class

Document Actions
Up one level
Constructor, members, and methods.
  • Constant names and class member variable names are case-sensitive in PHP.
  • Several MapScript functions (all those that access files in the back end such as ms_newMapObj(), drawMap(), etc.) will affect the value of the current working directory (CWD) in the PHP environment. This will be fixed eventually but in the meantime you should be careful about these side-effects.
Constructor:

 Instances of ColorObj are always embedded inside other classes.

Members:

  int    red
  int    green
  int    blue

Methods:

  void setRGB(int red, int green, int blue)
       Set red, green, blue values.
by Jeff McKenna last modified 2008-07-15 10:09

Powered by Plone