CImageView:Display


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

Syntax

bSuccess = CImageView:Display( CImage )

where

    CImage is the CImage object to display.

    bSuccess is the returned success code. On success it is true, otherwise false.

  

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 = CImageView:new()

-- create a CImageView object

I = CImage:new()

-- create a new CImage

I:Open(sPath)

-- load the image from a file named sPath

bSuccess = V:Display( I )

-- Create a CImageView and display the CImage

Related Topics

Append

Insert

CImageView class

CImage class