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.

Syntax

nBytes = CImage:Bytes()

where

    nBytes is the number of bytes in the image.

    On failure, this method returns 0.

Example

Suppose a CImage object I has 1000 columns x 2000 rows and "int" data type (32 bits per pixel). Then

nBytes = I:Bytes()

returns nRows = 8000000

Related Topics

Len

PixelBytes

Data Type

CImage class