Accusoft.ImagXpress12.Net
SaveStream(Stream,SaveOptions) Method
See Also  Example Send Feedback
Accusoft.ImagXpressSdk Namespace > ImageX Class > SaveStream Method : SaveStream(Stream,SaveOptions) Method




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

Glossary Item Box

Saves the current ImageX object to a stream object using the SaveOptions class to specify format and the format's specific parameters.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

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.

Example

C#Copy Code
// 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

©2013. Accusoft Corporation. All Rights Reserved.