Click or drag to resize

Jb2EncoderSave Method (Stream, ImageCollection, ProgressEventHandler)

Compresses an ImageCollection as a JBIG2 encoded file.

Namespace:  Atalasoft.Imaging.Codec.Jbig2
Assembly:  Atalasoft.dotImage.Jbig2 (in Atalasoft.dotImage.Jbig2.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public override int Save(
	Stream stream,
	ImageCollection images,
	ProgressEventHandler progress
)

Parameters

stream
Type: System.IOStream
The input stream.
images
Type: Atalasoft.ImagingImageCollection
AtalaImage to be written as JBIG2, PDF or embedded stream to PDF.
progress
Type: Atalasoft.ImagingProgressEventHandler
A progress Delegate. Pass in null (Nothing in VB, 0 in C++) to ignore progress events.

Return Value

Type: Int32
Returns the number of bytes encoded.
Exceptions
ExceptionCondition
Thrown if there is an error when compressing the image data.
Thrown if the source image is not 1-bit.
Thrown if Lossy compression is not used with symbols.
Remarks
To append to an existing image, set Jb2Encoder.Append to true and save using the Save overload that takes an AtalaImage.
See Also