Accusoft.ImagXpressSdk Namespace > ImageX Class > SaveStream Method : SaveStream(Stream,SaveOptions) Method |
'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 )
Note: PDF support is deprecated in ImagXpress, please use PDF Xpress instead for PDF support.
// 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( );