Open specified stream.

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

Syntax

C#
int Open(
	Stream stream
)

Parameters

stream
Type: System.IO..::.Stream
Stream to open.

Return Value

Returns number of images found in the specified stream.

Remarks

Implementation of this method is supposed to read image's header, checking for correct image format and reading its atributes.

Implementations of this method may throw FormatException exception to report about unrecognized image format, ArgumentException exception to report about incorrectly formatted image or NotSupportedException exception to report if certain formats are not supported.

See Also