CImageView:UpdateAll


The UpdateAll method forces the CImageView window to update all of its images after they are changed.

Syntax

CImageView:UpdateAll()

Remarks

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.

Example

Assume that a CImageView exists as the objectV. The following script pastes a rectangular table into all images and then updates them:

for i = 1, V:Count() do

-- loop over all images

  I = V:GetImage(i)

-- fetch the image at index i

  I:SetVal(200,400,10000)

-- paste a rectangular table of data at corner pixel (200,400)

end

 

V:UpdateAll()

-- force a window update to show the changes

Related Topics

CImageView, Update, CImage class


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics, Inc. All Rights Reserved.