CImageView:GraphSet CImageView:GetImagePtr

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 )

Example

Assume that an image is displayed in a CImageView named V. The following script fragment 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, GetImagePtr