CImageSet:Append
The Append method appends, or "adds" a CImage to the end of the image set.
CImageSet:Append( CImage ) |
This method adds a CImage at the end of the set. In comparison, the Insert method adds a CImage at a position in the image set prior to a numerical index.
The following script uses a loop to interactively append images until you click [Cancel] on the Open dialog. Note that the images are not closed after being opened, so they are available for use.
|
-- create a CImageSet |
|
-- create a CImage |
|
|
|
-- use the Open dialog to get a filename |
|
-- exit the loop after canceling the Open dialog |
|
-- load the image |
|
-- add the image to the end of the set |
|
|
CImageSet class, Insert, Remove
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.