Click or drag to resize

Jb2DecoderReadRegion Method

Decodes a specified region of a JBIG2 image given a source Stream.

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 virtual AtalaImage ReadRegion(
	Stream stream,
	Rectangle region,
	int frameIndex,
	ProgressEventHandler progress
)

Parameters

stream
Type: System.IOStream
The stream to read.
region
Type: System.DrawingRectangle
A rectangular region of the image to decode.
frameIndex
Type: SystemInt32
The zero based frame index to load from a multi-page JBIG2 file.
progress
Type: Atalasoft.ImagingProgressEventHandler
A progress Delegate. Pass in null (Nothing in VB, 0 in C++) to ignore progress events.

Return Value

Type: AtalaImage
Returns an AtalaImage containing the decoded JBIG2 image.
Remarks
If rectangle region is not set, then the full region will be decoded.
See Also