Click or drag to resize
Accord.NET (logo)

IImageDecoderOpen Method

Open specified stream.

Namespace:  Accord.Imaging.Formats
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
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.
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