Click or drag to resize
Accord.NET (logo)

IImageDecoderDecodeFrame Method

Decode specified frame.

Namespace:  Accord.Imaging.Formats
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.6.0
Syntax
Bitmap DecodeFrame(
	int frameIndex,
	out ImageInfo imageInfo
)
Request Example View Source

Parameters

frameIndex
Type: SystemInt32
Image frame to decode.
imageInfo
Type: Accord.Imaging.FormatsImageInfo
Receives information about decoded frame.

Return Value

Type: Bitmap
Returns decoded frame.
Remarks
Implementations of this method may throw NullReferenceException exception in the case if no image stream was opened previously, ArgumentOutOfRangeException in the case if stream does not contain frame with specified index or ArgumentException exception to report about incorrectly formatted image.
See Also