CImage:GetVal

CImage:GetValStr


The GetValStr method returns the pixel value at coordinate (x,y) in the form of a string.

Syntax

sVal = CImage:GetValStr( x, y )

Example

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:

I = new_image()

-- Create a CImage

I:Open( sPath )

-- Open the image from file path sPath.

s = I:GetValStr(53,400)

-- Return the pixel value at x,y

Printf("value=%s\n",s)

-- print the pixel value

Related Topics

CImage class, GetVal, SetVal


Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.