VintaSoft Twain .NET SDK v10.2
SaveToFile Method (AcquiredImage)




Vintasoft.WpfTwain Namespace > AcquiredImage Class : SaveToFile Method
Name of file where image must be saved.
Image encoder settings.
Saves this image to a file.
Syntax
'Declaration
 
Public Sub SaveToFile( _
   ByVal filename As String, _
   ByVal encoderSettings As TwainImageEncoderSettings _
) 
'Usage
 
Dim instance As AcquiredImage
Dim filename As String
Dim encoderSettings As TwainImageEncoderSettings
 
instance.SaveToFile(filename, encoderSettings)
public void SaveToFile( 
   string filename,
   TwainImageEncoderSettings encoderSettings
)
public: void SaveToFile( 
   string* filename,
   TwainImageEncoderSettings* encoderSettings
) 
public:
void SaveToFile( 
   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
This method equals to the Save(String,TwainImageEncoderSettings) method.
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
Save(String) Method
Save(String,TwainImageEncoderSettings) Method