VintaSoft Twain .NET SDK v10.2
Vintasoft.Twain Namespace / AcquiredImage Class / SaveToFile Method
Name of file where image must be saved.
Image encoder settings.




In This Topic
    SaveToFile Method (AcquiredImage)
    In This Topic
    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