VintaSoftTwain Control v6.0
VintaSoftTwain Object / AcquiredImages_Save Method
Zero-based index of image in acquired image collection. Valid values are from 0 to (AcquiredImages_Count-1).
Name of file where image must be saved.
In This Topic
    AcquiredImages_Save Method
    In This Topic
    Description
    Saves acquired image to a file.
    Syntax
    Visual Basic
    Public Function AcquiredImages_Save( _
       ByVal index As Long, _
       ByVal path As String _
    ) As Boolean
    Parameters
    index
    Zero-based index of image in acquired image collection. Valid values are from 0 to (AcquiredImages_Count-1).
    path
    Name of file where image must be saved.
    Return Type
    TRUE (1) if image is saved successfully, FALSE (0) otherwise.
    Remarks
    Image can be:
    - saved as image file (BMP, JPEG, PNG, TIFF)
    - added to multipage TIFF file
    - saved into new PDF or PDF/A document
    - added to existing PDF or PDF/A document

    Image can be added to PDF document compatible with version 1.4 or earlier of PDF standard.

    Image will be saved as BMP file if path has a 'bmp' extension.
    Image will be saved as PNG file if path has a 'png' extension.
    Image will be saved as new TIFF file or added to existing TIFF file if path has a 'tif' or 'tiff' extension.
    Image will be saved into new PDF file or added to existing PDF file if path has a 'pdf' extension.
    Image will be saved as JPEG file for all other extensions.

    Parameters of JPEG encoder can be set using JpegEncoder_JpegQuality and JpegEncoder_JpegColorSpace  properties.

    Parameters of PDF encoder can be set using PdfEncoder_CompressionPdfEncoder_MultiPagePdfEncoder_PdfACompatible, PdfEncoder_DocumentAuthorPdfEncoder_DocumentCreationDatePdfEncoder_DocumentCreator, PdfEncoder_DocumentKeywordsPdfEncoder_DocumentModificationDate, PdfEncoder_DocumentProducerPdfEncoder_DocumentSubjectPdfEncoder_DocumentTitle, PngEncoder_CompressionLevel (for ZIP compression), JpegEncoder_JpegQuality (for JPEG compression) and JpegEncoder_JpegColorSpace (for JPEG compression) properties.

    Parameters of PNG encoder can be set using PngEncoder_CompressionLevel property.

    Parameters of TIFF encoder can be set using TiffEncoder_CompressionImageTiffMultipagePngEncoder_CompressionLevel (for ZIP compression), JpegEncoder_JpegQuality (for JPEG compression) and JpegEncoder_JpegColorSpace (for JPEG compression) properties.

    Information about error that occurs during method execution can be get using the Error and ErrorString properties.
    Example
    Please see example here.
    See Also