Click or drag to resize

BaseCommonDecoderGetImageInfo Method (String, Int32)

Retrieve information from a file 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 virtual ImageInfo GetImageInfo(
	string filePath,
	int frameIndex
)

Parameters

filePath
Type: SystemString
File location in a computer's file system structure.
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

filePath is null or empty.

ArgumentOutOfRangeException

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

CommonDecoderException

file data decoding error.

See Also