Click or drag to resize

Jb2EncoderSave Method (Stream, AtalaImage, ProgressEventHandler)

Compresses a single AtalaImage 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,
	AtalaImage image,
	ProgressEventHandler progress
)

Parameters

stream
Type: System.IOStream
The input stream.
image
Type: Atalasoft.ImagingAtalaImage
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
[ImageWriteException] Thrown if there is an error when compressing the image data.
[IncompatiblePixelFormatException] Thrown if the source image is not 1-bit.
[ArgumentException] Thrown if Lossy compression is not used with symbols.
Remarks
To append to an existing image, set Jb2Encoder.Append to true.
See Also