CImage:GetValStr
The GetValStr method returns the pixel value at coordinate (x,y) in the form of a string.
sVal = CImage:GetValStr( x, y )
x and y are the column and row pixel coordinates, respectively, and may be passed as numbers or strings.
sVal is a string, like "2004.5" or "240,128,44".
The following script shows an image at path sPath being opened and the pixel value at column 53, row 400 being printed to the default Text Editor window:
|
-- Create a CImage |
|
-- Open the image from file path sPath. |
|
-- Return the pixel value at x,y |
|
-- print the pixel value |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.