CImage:Rows


The Rows method returns the number of rows in the CImage, which is defined as the length of axis 2. The Rows method still is supported but has been replaced by the more general Len method.

Syntax

nRows = CImage:Rows()

where

    nRows is the length, in pixels, of image axis 2.

    On failure, this method returns 0.

Example

Suppose that CImage I has dimension 1024 x 512 x 64. Then

nLen = I:Len(2)

-- returns nLen = 512

nLen = I:Len()

-- returns nLen = 33554432

Related Topics

Cols

Planes

Len

CImage class