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.
nCols = CImage:Cols() where |
nCols is the length, in pixels, of image axis 1.
On failure, this method returns 0.
Suppose that CImage I has dimension 1024 x 512 x 64. Then
|
-- returns nLen = 1024 |
|
-- returns nLen = 33554432 |