CImageView:UpdateAll
The UpdateAll method forces the CImageView window to update all of its images after they are changed.
CImageView:UpdateAll() |
The image window shows a view of the image data when the image was loaded. If changes are made to the image, then they will be updated only after Mira refreshes, or "updates" the view. Normally, Mira does this after any type of internal processing is done on a displayed image. Similarly, if a script changes the image data, then the view must be likewise refreshed to display the changes.However, some script methods and functions do not automatically refresh the view after making changes to the image. In such cases, you should call CImageView:Update to refresh the changed image or CImageView:UpdateAll to refresh all images of the window's image set.
Assume that a CImageView exists as the objectV. The following script pastes a rectangular table into all images and then updates them:
|
-- loop over all images |
|
-- fetch the image at index i |
|
-- paste a rectangular table of data at corner pixel (200,400) |
|
|
|
-- force a window update to show the changes |
CImageView, Update, CImage class
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.