Decodes a JPEG2000 image from a stream and returns an
AtalaImage with the decoded image
data.
Namespace:
Atalasoft.Imaging.Codec.Jpeg2000
Assembly:
Atalasoft.dotImage.Jpeg2000 (in Atalasoft.dotImage.Jpeg2000.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public override AtalaImage Read(
Stream stream,
ProgressEventHandler progress
)
Public Overrides Function Read (
stream As Stream,
progress As ProgressEventHandler
) As AtalaImage
Parameters
- stream
- Type: System.IOStream
The stream to read. - progress
- Type: Atalasoft.ImagingProgressEventHandler
A progress Delegate. Pass in null (Nothing in VB) to
ignore progress events.
Return Value
Type:
AtalaImage Returns an
AtalaImage containing the decoded JPEG2000 image.
Exceptions Exception | Condition |
---|
ImageReadException | Thrown is the stream is not at the beginning of a JPEG2000 stream. |
See Also