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#
public int Open(
	Stream stream
)

Parameters

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

Return Value

Returns number of images found in the specified stream.

Implements

IImageDecoder..::.Open(Stream)

Exceptions

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

See Also