Click or drag to resize
Accord.NET (logo)

PNMCodecOpen Method

Open specified stream.

Namespace:  Accord.Imaging.Formats
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.7.0
Syntax
public int Open(
	Stream stream
)
Request Example View Source

Parameters

stream
Type: System.IOStream
Stream to open.

Return Value

Type: Int32
Returns number of images found in the specified stream.

Implements

IImageDecoderOpen(Stream)
Exceptions
ExceptionCondition
FormatExceptionNot a PNM image format.
NotSupportedExceptionFormat of the PNM image is not supported.
ArgumentExceptionThe stream contains invalid (broken) PNM image.
See Also