.\
cggetcolorstate.pro
top cgGetColorState
Graphics, Utilities
result = cgGetColorState( [device] [, DEPTH=integer])
Provides a device-independent way to get the color decomposition state of the current graphics device.
Return value
Returns a 1 if color decomposition is turned on and a 0 if indexed color is used.
Parameters
- device in optional type=string
The IDL graphics device whose color decomposition state you wish to know the current value of. If undefined, the current graphics device is used.
Keywords
- DEPTH out optional type=integer
The depth of the color display. Typically 8 for indexed color devices and 24 for true-color devices.
Examples
IDL> currentState = cgGetColorState()
Author information
- Author:
FANNING SOFTWARE CONSULTING:
David W. Fanning 1645 Sheely Drive Fort Collins, CO 80526 USA Phone: 970-221-0438 E-mail: david@idlcoyote.com Coyote's Guide to IDL Programming: http://www.idlcoyote.com
- Copyright:
Copyright (c) 2010-2013, Fanning Software Consulting, Inc.
- History:
Change History:
Written, 5 Nov 2013, as a combination of DecomposedColor and GetDecomposedState, which have both been retired from the Coyote Library.
File attributes
Modification date: | Fri Mar 27 11:07:36 2015 |
Lines: | 163 |
Docformat: | rst rst |