Decode specified frame.

Namespace:  AForge.Imaging.Formats
Assembly:  AForge.Imaging.Formats (in AForge.Imaging.Formats.dll) Version: 2.2.4.0 (2.2.4.0)

Syntax

C#
public Bitmap DecodeFrame(
	int frameIndex,
	out ImageInfo imageInfo
)

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

ExceptionCondition
System..::.NullReferenceExceptionNo image stream was opened previously.
System..::.ArgumentOutOfRangeExceptionStream does not contain frame with specified index.
System..::.ArgumentExceptionThe stream contains invalid (broken) FITS image.

See Also