CImageView:Remove
The Remove method removes a CImage from the CImageView and frees memory associated with the image.
bResult = CImageView:Remove( nIndex ) |
The CImageView refers to a Mira image display window. The Image window uses an image set to display multiple images. This command removes the specified image from the image set and deletes the image from memory.
This method fails if you attempt to remove the only image or ifnIndex is out of bounds.
Suppose a CImageView exists, is assigned toV, and its window contains more than 3 images. The following script fragment removes the image at index 3:
|
-- delete the image at index 3 |
|
|
|
|
|
|