Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


Harris Geospatial / Docs Center / IDL Reference / Color Table / MULTI Procedure

MULTI Procedure

MULTI Procedure

The MULTI procedure expands the current color table to “wrap around” some number of times.

This routine is written in the IDL language. Its source code can be found in the file multi.pro in the lib subdirectory of the IDL distribution.

Examples


In the following example, we first display an image with the current color table. Then we load color table 1 and make that color table “wrap around” three times. The image is drawn again with the wrapped color table.

; Determine if Indexed or Decomposed color
; is being used
DEVICE, get_decomposed=d
; Set color display mode to Indexed Color
DEVICE, DECOMPOSED = 0
; Create the window
WINDOW, /FREE, XSIZE=(512), YSIZE=(256), $
   TITLE='MULTI Procedure'
;Display a simple image.
TVSCL, DIST(256), 0
;Load color table 1.
LOADCT, 1
; See how the new color table affects the image.
MULTI, 3
TVSCL, DIST(256), 1
; Set color display to previous state
DEVICE, decomposed=d

Syntax


MULTI, N

Arguments


N

The number of times the color table will wrap. This parameter need not be an integer.

Keywords


None.

Version History


Original

Introduced

See Also


STRETCH, XLOADCT



© 2017 Exelis Visual Information Solutions, Inc. |  Legal
My Account    |    Buy    |    Contact Us