Accusoft.TwainPro9.Net
SaveSourceCompressedImageToStream Method




An opened and writable System.IO.Stream derived stream object.
Saves the Source-compressed image to a stream object, the scanner (source) has directly compressed the image via the hardware.
Syntax
'Declaration
 
Public Sub SaveSourceCompressedImageToStream( _
   ByVal stream As Stream _
) 
'Usage
 
Dim instance As ScannedImage
Dim stream As Stream
 
instance.SaveSourceCompressedImageToStream(stream)
public void SaveSourceCompressedImageToStream( 
   Stream stream
)
public: void SaveSourceCompressedImageToStream( 
   Stream* stream
) 
public:
void SaveSourceCompressedImageToStream( 
   Stream^ stream
) 

Parameters

stream
An opened and writable System.IO.Stream derived stream object.
Remarks

The stream passed can be any stream derived System.IO.Stream. The stream should be opened by calling this method.

The stream should also allow writes.

Note: Compression must be set for the source first by setting AdvancedCapability.IcapCompression and AdvancedCapability.IcapPixelType should also be set to a pixel type that supports the compression.

Compression Mode Output File Type
TWCP_JPEG JPEG
TWCP_GROUP31D TIFF
TWCP_GROUP31DEOL TIFF
TWCP_GROUP32D TIFF
TWCP_GROUP4 TIFF
TWCP_PACKBITS TIFF
See Also

Reference

ScannedImage Class
ScannedImage Members

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback