CImageView:Count
The Count method returns the number of images in the CImageView. This is the number of images displayed in the window attached to the CImageView object.
nCount = CImageView:Count() where |
nCount is the number of CImage objects in the CImageView window and is > 0.
On failure, this method returns 0.
Suppose a CImageView named V exists and that some CImage objects are held in an array named I. The following script displays the images and then returns the number of images displayed in the image window:
|
-- create a CImageView |
|
-- display an image |
|
-- display another |
|
-- display another |
|
-- result: n = 3 |