VintaSoft Twain .NET SDK v10.2
Vintasoft.WpfTwain Namespace / AcquiredImage Class / Save Method / Save(String) Method
Name of file where image must be saved.




In This Topic
    Save(String) Method
    In This Topic
    Saves this image to a file.
    Syntax
    'Declaration
     
    Public Overloads Sub Save( _
       ByVal filename As String _
    ) 
    'Usage
     
    Dim instance As AcquiredImage
    Dim filename As String
     
    instance.Save(filename)
    public void Save( 
       string filename
    )
    public: void Save( 
       string* filename
    ) 
    public:
    void Save( 
       String^ filename
    ) 

    Parameters

    filename
    Name of file where image must be saved.
    Exceptions
    ExceptionDescription
    Thrown if filename is null.
    Thrown if extension of filename is unsupported.
    Thrown if error occurs at the image saving.
    Remarks
    Image can be:
    - saved as image file (BMP, GIF, JPEG, PNG, TIFF)
    - added to multipage TIFF file
    - saved into new PDF or PDF/A document
    - added to existing PDF or PDF/A document

    Available compressions for images saved into TIFF file:
    - without compression
    - CCITT Group 4 Fax compression
    - LZW compression
    - ZIP compression
    - JPEG compression

    Available compressions for images saved into PDF document:
    - without compression
    - CCITT Group 4 Fax compression
    - LZW compression
    - ZIP compression
    - JPEG compression

    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 GIF file if path has a 'gif' 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.
    Example
    Please see example here.
    Requirements

    Target Platforms: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also