CImage:Bytes
The Bytes method returns the number of bytes in the image. This is the product of the number of rows, number of columns, and the number of bytes per pixel.
nBytes = CImage:Bytes() |
On failure, this method returns 0.
Suppose a CImage object I is attached to an image having 1000 columns x 1000 rows and "ushort" data type . Then
nBytes = I:Bytes()
returns the value nRows = 2000000.