CImageView:Update

CImageView:UpdateAll


The UpdateAll method forces the CImageView window to update its display after its images are changed.

Syntax

CImageView:UpdateAll()

Remarks

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.

Example

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:

 

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)

-- change the value at pixel (200,400)

end

 

V:UpdateAll()

-- force a window update to show the changes

Related Topics

CImageView, Update, CImage