Chapter Contents

Previous

Next
Image Data Model: _getPixel

Image Data Model: _getPixel



Returns the pixel value of a specified position in an image


Syntax
Details

Syntax

CALL SEND (object-id, '_getPixel', x, y, pix_val|red, green, blue);

Argument Type Description
x
N the row location in the image
y
N the column location in the image
pix-val
N for images of type CMAP, a pixel value in the range 0...255 that is the index of the color being returned; for images of type GRAY, a pixel value that is either 1 or 0
red, green, blue
N for images of type RGBA, the red, green, and blue values of the pixel color being returned; values should be in the range 0...255


Details

The _getPixel method returns an error if any value is outside the range.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.