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()

bullet.gif    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 class, Cols, Rows, PixelTypes


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