CImageView:Display


The Display method displays a CImage in a new CImageView. The CImageView window is created by this command.

Syntax

bResult = CImageView:Display( CImage )

bullet.gif    On success, this method returns true.

bullet.gif    On failure, this method returns false.

Remarks

The CImageView refers to a Mira image display window. The Image window uses an image set to display multiple images. This command creates a new CImageView window and displays in it the specified image. The image is at index 1 of the image set.

Example

The following script displays a CImage in a CImageView window:

V = new_imageview()

-- create a CImageView object

I = new_image()

-- create a new CImage

I:Open(sPath)

-- load the image from a file named sPath

bOK = V:Display( I )

-- Display the CImage

Related Topics

CImageView , Append , Insert , CImage class


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