CImageView:Append
The Append method appends a CImage to the end of the image set of the CImageView.
bSuccess = CImageView:Append( CImage ) where |
CImage is the CImage object to append to the image set in the CImageView object.
bSuccess is the returned success code. On success it is true, otherwise false.
The CImageView refers to a Mira image display window. The Image window uses an Image Set to display multiple images. This method appends the image list with the image wrapped by the CImage object. If the CImageView has been instantiated using new but no images have yet been displayed in it, then Append works like Display.
The following script creates a CImageView and appends an image to it:
|
-- create a CImageView |
|
-- create a new CImage |
|
-- load the image from a file named sPath |
|
-- Creates a CImageView to display the CImage |
The following fragment uses a loop to interactively append images until you click[Cancel] on the Open dialog. Inside the loop, the first use of Append creates the CImageView and displays the image. Each subsequent cycle of the loop appends an image to the same CImageView:
|
-- create a CImageView |
|
-- create a CImage |
|
|
|
-- use the Open dialog to get a filename |
|
-- exit the loop after hitting Cancel |
|
-- load the image |
|
-- Create a new CImageView containing the CImage |
|
|