CImageView:GraphSet CImageView:GetImageSet

CImageView:GetImage


The GetImage method returns a new CImage object for the image currently displayed in the CImageView (i.e., in the image view window).

Syntax

CImage = CImageView:GetImage( nIndex=nil )

bullet.gif    The optional parameter nIndex is the image to select, in the range 1 to Count.

bullet.gif    If nIndex is not specified is set to nil, the current image is selected.

bullet.gif    On success, this method returns a new CImage object.

bullet.gif    On failure, this method returns nil.

Example

Assume that an image is displayed in a CImageView named V. The following script crops the current displayed image at the limits of the image cursor:

I = V:GetImage()

-- attach the displayed image to the CImage

R = V:GetCursorRect()

-- get the cursor extent as a CRect

I:Crop( R )

--crop the image to the image cursor

Related Topics

CImageView, CImage class


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