attachlist_image


The attachlist_image method lists all images of a specified CImageView and lists them for selection. The selected image is returned as a new CImage object. After selecting an image, click [OK] to return the CImage to the script.

 

Syntax

Object = attachlist_image( CImageView_obj )

bullet.gif    CImageView_obj is the CImageView object containing the images to be listed.

bullet.gif    Object is a new CImage attached to the selected image.

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

bullet.gif    On failure, this method return nil.

Example

This script below first creates a CImageView from the image window you select, then lists the images in the selected window. After you select an image from that list, the target image is displayed in a new window:

V = attachlist_imageview()

-- select the CImageView from a list

Assert( V, "No Image views are open")

-- check that the CImageView is valid

if V:Count() > 1 then

  

  I = attachlist_image( V )

-- now pick the image from the CImageView V

  Assert( I, "No Images are available")

 

else

 

  I = V:GetImage()

-- pick the only image in the window

end

 

Related Topics

CImage class

new

attachlist_imageview

 


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