CImage:PixelBytes CImage:Rows

CImage:Pixels


The Pixels method returns the number of pixels in the image. This is the product of the numbers of rows and columns.

Syntax

nPixels = CImage:Pixels()

    On failure, this method returns 0.

Example

Suppose a CImage object I is attached to an image having 1000 columns x 1000 rows. Then

     nPixels = I:Pixels()

returns the value nRows = 1000000.

Related Topics

CImage, Cols, Rows, Data Type