Click or drag to resize

BaseCommonDecoderIsValidFormat Method (Stream)

Checks the stream to determine if the image can be read by the decoder that derives this class.

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 bool IsValidFormat(
	Stream stream
)

Parameters

stream
Type: System.IOStream
A stream containing the encoded image data.

Return Value

Type: Boolean
True if the encoded image can be read by this decoder, otherwise false.
Exceptions
ExceptionCondition
ArgumentException

stream is null.

CommonDecoderException

file decoding error.

See Also