Previous Page | Next Page

SAS Component Language Dictionary

IMGOP



Performs image operations
Category: Image

Syntax
Commands Used with IMGOP

Syntax

rc=IMGOP(task-id,command,<other arguments>);

rc

contains the return code for the operation:

0

successful

>0

not successful

Type: Numeric
task-id

contains the identifier (returned by a previous IMGINIT function) of the task to be operated upon.

Type: Numeric

command

is the command to execute. Valid commands are listed in Commands Used with IMGOP.

Type: Character

other-arguments

lists arguments that are used for a command. The arguments required for a command may include image file attributes. You can specify image file attributes by enclosing the attributes in quotation marks and separating multiple attributes with blanks. For example:

rc=imgop(tid,"WRITE",filename,
           "FORMAT=TIFF
           COMPRESS=G3FAX"):

Type: Character or Numeric

Note:   When read with IMGOP, Encapsulated Postscript Interchange (EPSI) files display as low-resolution and monochrome. This degraded image is the preview version of the actual image.   [cautionend]


Commands Used with IMGOP

For detailed information about these commands, see Commands Used with the IMGCTRL, IMGOP and PICFILL Functions.

CONVERT

converts an image to the specified image type and depth.

COPY

copies an image.

CREATE_IMAGE

creates a new image that is stored in memory.

CROP

crops the selected image.

DESTROY

removes an image from memory and from the display.

DESTROY_ALL

removes all images from memory and from the display.

DITHER

dithers an image to a color map.

DITHER_BW

dithers the selected image to a monochrome black and white image.

EXECLIST

executes a list of commands.

FILTER

applies a filter to an image.

GAMMA

applies a gamma value to the selected image.

GENERATE_CMAP

generates a color map for the selected image.

GET_BARCODE

returns the value of the specified bar code.

GET_COLORS

returns the RGB values of the index positions of a color map for the selected image.

GET_PIXEL

returns the pixel value of a specified position in the selected image.

GRAB_CMAP

grabs the color map from the selected image.

MAP_COLORS

maps colors to the closest color in the selected color map.

MIRROR

mirrors an image.

NEGATE

changes the image to a negative.

PASTE

displays an image at a specified location.

PASTE_AUTO

displays an image automatically.

PRINT

prints an image.

QUANTIZE

reduces the number of colors used for an image.

QUERYC, QUERYL, and QUERYN

query information about images.

READ

reads an image from an external file, a SAS catalog, or a device.

READ_CLIPBOARD

reads an image from the host clipboard.

READ_PASTE

reads and displays an image.

READ_PASTE_AUTO

reads and automatically displays an image.

ROTATE

rotates an image clockwise by 90, 180, or 270 degrees.

SCALE

scales an image.

SELECT

selects the image identifier to be used in other commands.

SET_COLORS

assigns the RGB values for the index positions of a color map for the current image.

SET_PIXEL

assigns the pixel value in an image at the specified position.

STANDARD_CMAP

selects a color map.

THRESHOLD

converts color images to black and white, using the value that is specified with the THRESHOLD command.

TILE

replicates the current image into a new image.

UNPASTE

removes an image from the display.

WRITE

writes an image to a file or to a SAS catalog.

WRITE_CLIPBOARD

writes an image to the host clipboard.

Previous Page | Next Page | Top of Page