Decode first frame of FITS image.

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 DecodeSingleFrame(
	Stream stream
)

Parameters

stream
Type: System.IO..::.Stream
Source stream, which contains encoded image.

Return Value

Returns decoded image frame.

Implements

IImageDecoder..::.DecodeSingleFrame(Stream)

Exceptions

ExceptionCondition
System..::.FormatExceptionNot a FITS image format.
System..::.NotSupportedExceptionFormat of the FITS image is not supported.
System..::.ArgumentExceptionThe stream contains invalid (broken) FITS image.

See Also