Commands Used with the IMGCTRL, IMGOP and PICFILL Functions |
Returns the pixel value of a specified position in the selected
image
rc=IMGOP(task-id, 'GET_PIXEL', x, y, red<, green,
blue>);
|
-
x
-
is the row location in the image.
Type:
Numeric
-
y
-
is the column location in the image.
Type:
Numeric
-
red
-
is either the red value of an RGB image
or the pixel value for a CMAP or GRAY image.
Type: Numeric
-
green
-
is the green value for an RGB image and
is ignored for all others.
Type: Numeric
-
blue
-
is the blue value for an RGB image and is
ignored for all others.
Type: Numeric
The color values for a CMAP image or an
RGB image must be between 0 and 255. If any value is out of range, an error
is returned. For a GRAY image, GET_PIXEL returns a red value of either 0
or 1.
See the example for
CREATE_IMAGE.
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.