CImage:Display


The Display method displays the CImage in a new CImageView. The CImageView window is created by this method. There is a parallel method in the CImageView class.

Syntax

CImageView = CImage:Display()

Remarks

This method creates a new CImageView window and displays in it a copy of the CImage. The image in the CImage object is not the same image as in the CImageView, although they initially have identical properties; rather the CImage and the displayed image point to two different objects in memory.

After this methods returns a reference to the new CImageView, CImageView class methods can be used to manipulate the displayed image.

Example

The following script displays a CImage in a CImageView window:

V = new_imageview()

-- not needed if using CImage:Display()

I = new_image()

-- create a new CImage

I:Open(sPath)

-- load the image from a file named sPath

V = I:Display()

-- displays the image and returns the new CImageView

Related Topics

CImage class, CImageView


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