>  Docs Center  >  Libraries  >  ASTROLIB  >  PIXCOLOR
Libraries

PIXCOLOR

PIXCOLOR

Name


PIXCOLOR

Purpose


Assign colors to specified pixel values in a color lookup table

Explanation


      Colors can be specified either from the list in cgcolor
      (http://www.idlcoyote.com/programs/cgcolor.pro ) or as 1 letter
      abbreviations for 8 common colors.

Calling Sequence


      PIXCOLOR, pixvalue, color ;Set color at specified pixel values
  INPUT PARMETERS:
pixvalue - value or range of pixel values whose color will be modified.
A single pixel value may be specified by an integer
If a range of values is specified, then it must be written
as a string, with a colon denoting the range (e.g.'102:123')
If omitted, program will prompt for this parameter.

Optional Input Parameter


color - scalar string specifying either a full color name available in
              CGCOLOR, or a single character string giving one of the
              specified colors: 'R' (red), 'B' (blue), 'G' (green)
'Y' (yellow), 'T' (turquoise), 'V' (violet), 'W' (white)
or 'D' (dark). If omitted, program will prompt for this
parameter.

Outputs


None

Procedure


TVLCT is used in RGB mode to load the specified pixel values.

Example


Set pixel values of 245 to a color of red
IDL> pixcolor,245,'R'
      Set pixel values 120 to 150 to Magenta
      IDL> pixcolor,'120:150','Magenta'

Revision History


Written, W. Landsman ST Systems Corp. February, 1987
Converted to IDL V5.0 W. Landsman September 1997
      Allow specification of cgcolor names April 2011



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us