CImage:Pixels


The Pixels method returns the number of pixels in the image.

Syntax

nPixels = CImage:Pixels()

where

    nPixels is the total number of pixels.

    On failure, this method returns 0.

Example

Suppose that CImage I has dimension 100 x 2000 x 8. Then

nLen = I:Pixels()

-- returns nLen = 1600000

Related Topics

Len

Cols

Rows

Planes

Data Type

CImage class