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
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.
C# | ![]() |
---|---|
// 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( ); |