VintaSoft Twain .NET SDK v10.2
Save(String,TwainImageEncoderSettings) Method




Vintasoft.WpfTwain Namespace > AcquiredImage Class > Save Method : Save(String,TwainImageEncoderSettings) Method
Name of file where image must be saved.
Image encoder settings.
Saves this image to a file.
Syntax
'Declaration
 
Public Overloads Sub Save( _
   ByVal filename As String, _
   ByVal encoderSettings As TwainImageEncoderSettings _
) 
'Usage
 
Dim instance As AcquiredImage
Dim filename As String
Dim encoderSettings As TwainImageEncoderSettings
 
instance.Save(filename, encoderSettings)
public void Save( 
   string filename,
   TwainImageEncoderSettings encoderSettings
)
public: void Save( 
   string* filename,
   TwainImageEncoderSettings* encoderSettings
) 
public:
void Save( 
   String^ filename,
   TwainImageEncoderSettings^ encoderSettings
) 

Parameters

filename
Name of file where image must be saved.
encoderSettings
Image encoder settings.
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 a PDF document compatible with version 1.4 or earlier of PDF standard.


Image will be saved as BMP file if
Image will be saved as GIF file if
Image will be saved as JPEG file if
Image will be saved as PDF file if
Image will be saved as PNG file if
Image will be saved as TIFF file if
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

Reference

AcquiredImage Class
AcquiredImage Members
Overload List
Save(String) Method
SaveToFile Method