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
)
Public Overrides Function IsValidFormat (
stream As Stream
) As Boolean
Parameters
- stream
- Type: System.IOStream
A stream containing the encoded image data.
Return Value
Type:
BooleanTrue if the encoded image can be read by this decoder, otherwise false.
Exceptions Exception | Condition |
---|
ArgumentNullException | stream |
ArgumentException | The stream does not have read access.;stream |
See Also