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).
CImage = CImageView:GetImage( nIndex=nil ) |
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:
|
-- attach the displayed image to the CImage |
|
-- get the cursor extent as a CRect |
|
--crop the image to the image cursor |