Click or drag to resize

XpsDecoderIsValidFormat Method

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.Wpf (in Atalasoft.dotImage.Wpf.dll) Version: 11.4.0.9.0.377 (.NET 4.5.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
ArgumentNullExceptionstream
ArgumentExceptionThe stream does not have read access.;stream
See Also