CImageView:UpdateAll
The UpdateAll method forces the CImageView window to update its display after its images are changed.
CImageView:UpdateAll() |
The image display window shows a view of the image data, but not the image data itself. After changing the image data, the view does not display changed until an update is performed. This command performs the update for all images owned by the window. If the window has an image set of more than 1 images, then the Update command can be used to update a specific one of the images.
Assume that a CImageView exists and is referenced byV. The following script fragment changes a pixel value in all images and then updates all of them:
|
-- loop over all images |
|
-- fetch the image at index i |
|
-- change the value at pixel (200,400) |
|
|
|
-- force a window update to show the changes |