CImageView:Append
The Append method appends a CImage to the end of the image set of the CImageView.
bResult = CImageView:Append( CImage ) |
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 fragment 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 |
|
|
CImageView , Display , Insert , CImage