// 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( );