Gamma LAT: Reference Manual


drawthat

ANSI-C program: drawthat.c

NAME
drawthat - draw an arc, polygon, cross, or point on a Sun raster file at specified positions.

SYNOPSIS
drawthat <ras_in> <points> <ras_out> [mode] [value] [nn_flag] [print_flag]

<ras_in> (input) input SUN raster file
<pos> (input) list of points specified by x and y coordinates (text format)
<ras_out> (output) output SUN raster file with drawn figures
[mode] drawing mode (default = 0)
0 : draw an arc connecting points
1 : draw a filled polygon specified by the points
2 : draw crosses at the points
3 : draw points
[value] RGB value for drawing: default value = 0 0 0

EXAMPLES

drawthat input.ras points.txt out.ras 2 0 255 255

draws crosses in the output image out.ras at points specified in the points.txt file. The crosses are drawn using RGB = 255,255,0 (yellow).

drawthat input.ras points.txt out.ras 1 0 255 255

draws a filled polygon specifed by the point pixel coordinates specified in points.txt in the output image out.ras

INSTALLATION
Source code drawthat.c in ./src. For compilation adjust and use Makefile. Executable version drawthat in ../bin

AVAILABILITY
Uses ISP type definition file typedef_ISP.h.
Uses DISP type definition file display.h.

DESCRIPTION
drawthat is a program for drawing annotation on a Sun raster format image. Supported modes are arcs, filled polygons, crosses, or points. The points used to specify the image objects are contained in a text format file with pairs of x, y coordinates. Multiple polygons or arcs are specified by a single line gap in the pos file. The user can specify the color of the drawn color in the image.

SEE ALSO
takethat.


© Copyrights for Documentation, Users Guide and Reference Manual by Gamma Remote Sensing, 2004.
UW, CW, TS, last change 7-Jul-2004.