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




Vintasoft.Twain Namespace > AcquiredImage Class : SaveToStream Method
The System.IO.Stream where the image must be saved.
Encoder settings.
Saves this image to the specified stream in the specified format.
Syntax
'Declaration
 
Public Sub SaveToStream( _
   ByVal stream As Stream, _
   ByVal encoderSettings As TwainImageEncoderSettings _
) 
'Usage
 
Dim instance As AcquiredImage
Dim stream As Stream
Dim encoderSettings As TwainImageEncoderSettings
 
instance.SaveToStream(stream, encoderSettings)
public void SaveToStream( 
   Stream stream,
   TwainImageEncoderSettings encoderSettings
)
public: void SaveToStream( 
   Stream* stream,
   TwainImageEncoderSettings* encoderSettings
) 
public:
void SaveToStream( 
   Stream^ stream,
   TwainImageEncoderSettings^ encoderSettings
) 

Parameters

stream
The System.IO.Stream where the image must be saved.
encoderSettings
Encoder settings.
Exceptions
ExceptionDescription
Thrown if stream is null or encoderSettings is null.
Thrown if error occurs at the image saving.
Remarks
This method equals to the Save(Stream,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(Stream,TwainImageEncoderSettings) Method