CImage:Len
The Len method returns either the number of pixels in the image or the number of pixels along a specified axis.
nLen = CImage:Len() nLen = CImage:Len( nAxis )
where |
If no argument
is given, the total number of pixels in the image is returned.
nAxis is the axis whose length is being
requested. This value is between 1 and the maximum number of axes
supported by Mira. For example, nAxis=1 returns the number of columns in the
image.
nLen is the number of pixels along axis
nAxis.
On failure,
this method returns 0.
Suppose that CImage I has dimension 1024 x 512 x 64. Then
|
-- returns nLen = 1024 |
|
-- returns nLen = 512 |
|
-- returns nLen = 64 |
|
-- returns nLen = 33554432 |