Decode specified frame.
Namespace:
AForge.Imaging.FormatsAssembly: AForge.Imaging.Formats (in AForge.Imaging.Formats.dll) Version: 2.2.4.0 (2.2.4.0)
Syntax
Parameters
- frameIndex
- Type: System..::.Int32
Image frame to decode.
- imageInfo
- Type:
AForge.Imaging.Formats..::.ImageInfo
%
Receives information about decoded frame.
Return Value
Returns decoded frame.Implements
IImageDecoder..::.DecodeFrame(Int32, ImageInfo%)
Exceptions
Exception | Condition |
---|---|
System..::.NullReferenceException | No image stream was opened previously. |
System..::.ArgumentOutOfRangeException | Stream does not contain frame with specified index. |
System..::.ArgumentException | The stream contains invalid (broken) PNM image. |