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.

Syntax

nCount = CImageView:Count()

bullet.gif    On success, this method returns nCount > 0.

bullet.gif    On failure, this method returns 0.

Example

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:

V = new_imageview()

-- create a CImageView

V:Append( I[1] )

-- display an image

V:Append( I[2] )

-- display another

V:Insert( I[3], 2 )

-- display another

Printf( "n = %d", V:Count() )

-- result: n = 3

Related Topics

CImageView, Append


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics, Inc. All Rights Reserved.