Visual Basic
C#
Managed Extensions for C++
C++/CLI
Parameters
- stream
- An opened and writable System.IO.stream derived stream object
- format
- The image file format to save the ImageX object as
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 memory stream that will grow as needed. System.IO.MemoryStream memoryStream = new System.IO.MemoryStream( ); // Save an ImageX object to jpg format with default parameters imageX.SaveStream( memoryStream, Accusoft.ImagXpressSdk.ImageXFormat.Jpeg ); memoryStream.Close( ); |