next up previous contents
Next: Properties Up: FFish Script Objects Reference Previous: onEndPrinting   Contents

Image

Description
available: SWFKit Pro

Manipulates images. Before you can manipulate an image, load it by the "load" method or capture an image by the "captureScreen" method or the "captureMovie" method. You can also get an image from clipboard by the "Application.clipboard.pasteBitmap" method. All these methods return an instance of the Image object.

The Image object also provides methods to access the TWAIN interface. The TWAIN interface feature is not available for Screen Savers.

The supported image formats are:
bmp -
read, write
wmf emf -
read
jpg jpeg -
read, write
ico -
read
pcx -
read
tiff tif -
read
tga -
read
gif -
read
png -
read, write


Remarks

The Image object supports the TWAIN interface, you can use it to scan images using a scanner:
  1. Initializes the TWAIN driver
    Image.twainInit();
    
  2. Selects a source
    Image.twainSelectSource();
    
  3. Acquires images
    When an image is transferred to the application, the onCopyImage event will be fired. You should save the transferred image by handling the event

    var imgs = [];
    Image.twainAcquire();
    
    Image.onCopyImage = function (image)
    {
        imgs.push(image);
        image.loadImage(1);
    }
    




Subsections
next up previous contents
Next: Properties Up: FFish Script Objects Reference Previous: onEndPrinting   Contents
Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.