CImage:Cols


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

Syntax

nCols = CImage:Cols()

where

    nCols is the length, in pixels, of image axis 1.

    On failure, this method returns 0.

Example

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

 

nLen = I:Len(1)

-- returns nLen = 1024

nLen = I:Len()

-- returns nLen = 33554432

Related Topics

Rows

Planes

Len

CImage class