CImageView:GetImageSet


The GetImageSet method returns a new CImageSet that references the images displayed in the CImageView.

Syntax

CImageSet = CImageSet:GetImageSet()

where

    CImageSet is a new CImageSet object. On failure, nil is returned.

  

This method copies the image set from the CImageView class into a new CImageSet object. You do not need to use CImageSet:new.

Example

Suppose a CImageView exists with name V and that it displays 10 images. The following script copies the image set from the object V to a CImageSet named S:

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

-- result: V count= 10

S:GetImageSet()

-- returns a new CImageSet

Printf("S count= %d", S:Count() )

-- result: S count= 10

Related Topics

CImageSet class