CImageSet:Copy
The Copy method duplicates the CImageSet and returns the new copy.
CImageSet = CImageSet:Copy() |
The following fragment duplicates the image set. Note that the CImage objects are not closed after the loop in this example, so they may be used afterward. They should be closed before exiting the script.
|
-- create a CImageSet |
|
-- create a CImage |
|
|
|
-- use the Open dialog to get a filename |
|
-- exit the loop after hitting Cancel |
|
-- load the image |
|
-- add the CImage to the set |
|
|
|
-- create a duplicate CImageSet T |