Jb2DecoderRead Method (Stream, Int32, ProgressEventHandler) |
Decodes a JBIG2 image from a stream and returns an
AtalaImage with the decoded image data.
Namespace:
Atalasoft.Imaging.Codec.Jbig2
Assembly:
Atalasoft.dotImage.Jbig2 (in Atalasoft.dotImage.Jbig2.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public override AtalaImage Read(
Stream stream,
int frameIndex,
ProgressEventHandler progress
)
Public Overrides Function Read (
stream As Stream,
frameIndex As Integer,
progress As ProgressEventHandler
) As AtalaImage
Parameters
- stream
- Type: System.IOStream
The stream to read. - frameIndex
- Type: SystemInt32
The zero based frame index. - 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.
Exceptions Exception | Condition |
---|
| Thrown if there is an error reading the image data. |
Remarks Overrides an abstract method in MultiFramedImageDecoder.
See Also