XpsDecoderRead Method (Stream, Int32, ProgressEventHandler) |
Read a given frame in an encoded image using this decoder.
Namespace:
Atalasoft.Imaging.Codec
Assembly:
Atalasoft.dotImage.Wpf (in Atalasoft.dotImage.Wpf.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public override AtalaImage Read(
Stream inStream,
int frameIndex,
ProgressEventHandler progress
)
Public Overrides Function Read (
inStream As Stream,
frameIndex As Integer,
progress As ProgressEventHandler
) As AtalaImage
Parameters
- inStream
- Type: System.IOStream
- frameIndex
- Type: SystemInt32
The zero based frame index. - progress
- Type: Atalasoft.ImagingProgressEventHandler
The progress delegate. Can be set to null (Nothing in
Visual Basic).
Return Value
Type:
AtalaImageExceptions Exception | Condition |
---|
ArgumentNullException | stream |
ArgumentException | The stream does not have read access.;stream |
See Also