plot/
rgbindex.pro
toprgbindex
Plot
Translates RGB triplets into colour indices for 24-bit decomposed mode.
Return value
Returns the colour index or indices for 24-bit decomposed mode (DEVICE, DECOMPOSED=1) corresponding to the R,G,B triplets.
Parameters
- r in required
A byte or array of bytes of red values.
- g in required
A byte or array of bytes of green values.
- b in required
A byte or array of bytes of blue values.
Examples
r = [0,128,255]
g = [128,128,128]
b = [255,128,0]
colourarray = RGBINDEX(r, g, b)
Author information
| History: | Written by: Jeremy Bailin 12 June 2008 Public release in JBIU |
File attributes
| Modifcation date: | Fri Jun 13 10:51:56 2008 |
| Lines: | 38 |
![[attach.png]](../idldoc-resources/attach.png)