CImage:ValStr
The ValStr method returns the pixel value at coordinate (x,y) in the form of a string.
sVal = CImage:ValStr( x, y )
x and y are the column and row pixel coordinates, respectively, and may be passed as numbers or strings.
The following script fragment shows an image at path sPath being opened and the pixel value at column 53, row 400 being printed to a standard text window:
|
-- Create a CImage |
|
-- Open the image from file path sPath. |
|
-- Return the pixel value at x,y |
|
-- print the pixel value |