DRAW_ROI
Syntax | Arguments | Keywords | Examples | Version History
The DRAW_ROI procedure draws a region or group of regions to the current Direct Graphics device. The primitives used to draw each ROI are based on the TYPE property of the given IDLanROI object. The TYPE property selects between points, polylines, and filled polygons.
Syntax
DRAW_ROI, oROI [, /LINE_FILL] [, SPACING=value]
Graphics Keywords: [, CLIP=[X0, Y0, X1, Y1]] [, COLOR=value] [, /DATA | , /DEVICE | , /NORMAL] [, LINESTYLE={0 | 1 | 2 | 3 | 4 | 5}] [, /NOCLIP] [, ORIENTATION=ccw_degrees_from_horiz] [, PSYM=integer{0 to 10}] [, SYMSIZE=value] [, /T3D] [, THICK=value]
Arguments
oROI
A reference to an IDLanROI object to be drawn.
Keywords
LINE_FILL
Set this keyword to indicate that polygonal regions are to be filled with parallel lines, rather than using the default solid fill. When using a line fill, the thickness, linestyle, orientation, and spacing of the lines may be specified by keywords.
SPACING
The spacing, in centimeters, between the parallel lines used to fill polygons.
Graphics Keywords Accepted
See Graphics Keywords for the description of the following graphics and plotting keywords:
CLIP, COLOR, DATA, DEVICE, LINESTYLE, NOCLIP, NORMAL, ORIENTATION, PSYM, SYMSIZE, T3D, THICK
Examples
The following example displays an image and collects data for a region of interest. The resulting ROI is displayed as a filled polygon.
Note
Also see Displaying ROI Objects in a Direct Graphics Window (Image Processing in IDL).
Version History