Click or drag to resize

BaseCommonDecoderGetImageInfo Method (Stream, Int32)

Retrieve information from a file data stored in a Stream about specified frame.

Namespace:  Atalasoft.Imaging.Codec
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.5.0.5.0.230 (.NET 4.6.2, x86)
Syntax
public override ImageInfo GetImageInfo(
	Stream stream,
	int frameIndex
)

Parameters

stream
Type: System.IOStream
A stream containing the file data.
frameIndex
Type: SystemInt32
The zero based frame index.

Return Value

Type: ImageInfo
An ImageInfo object containing information about the specified frame such as size, pixel format etc.
Exceptions
ExceptionCondition
ArgumentException

stream is null.

ArgumentOutOfRangeException

frameIndex is not in range [0, frameCount], (see GetFrameCount(Stream) for details).

CommonDecoderException

file data decoding error.

See Also