Accusoft.ImagXpress13.Net
SaveStream(Stream,SaveOptions) Method
Example 




An opened and writable System.IO.stream derived stream object
A SaveOptions object that specifies the format as well as the format's specific parameters
Saves the current ImageX object to a stream object using the SaveOptions class to specify format and the format's specific parameters.
Syntax
'Declaration
 
Public Overloads Sub SaveStream( _
   ByVal stream As Stream, _
   ByVal saveOptions As SaveOptions _
) 
'Usage
 
Dim instance As ImageX
Dim stream As Stream
Dim saveOptions As SaveOptions
 
instance.SaveStream(stream, saveOptions)
public void SaveStream( 
   Stream stream,
   SaveOptions saveOptions
)
public: void SaveStream( 
   Stream* stream,
   SaveOptions* saveOptions
) 
public:
void SaveStream( 
   Stream^ stream,
   SaveOptions^ saveOptions
) 

Parameters

stream
An opened and writable System.IO.stream derived stream object
saveOptions
A SaveOptions object that specifies the format as well as the format's specific parameters
Remarks
The stream passed can be any stream derived System.IO.Stream. The stream should be opened be calling this method. The stream should also allow writes.

Note: PDF support is deprecated in ImagXpress, please use PDF Xpress instead for PDF support.

Example
// assume that an ImageX object has been created and is valid
// create a SaveOptions object to specify format and other parameters
Accusoft.ImagXpressSdk.SaveOptions saveOptions = new Accusoft.ImagXpressSdk.SaveOptions( );
// create a memory stream that will grow as needed.
System.IO.MemoryStream memoryStream = new System.IO.MemoryStream( );
// set the format as well as specific parameters for the format
saveOptions.Format = Accusoft.ImagXpressSdk.ImageXFormat.Jpeg;
saveOptions.Jpeg.Luminance = 24;
saveOptions.Jpeg.Chrominance = 30;
// Save an ImageX object to jpg format with luminance and chrominance
imageX.SaveStream( memoryStream, saveOptions );
memoryStream.Close( );
See Also

Reference

ImageX Class
ImageX Members
Overload List

 

 


©2018. Accusoft Corporation. All Rights Reserved.

Send Feedback