VintaSoft Imaging .NET SDK 15.2: Documentation for .NET developer
Vintasoft.Imaging.Codecs.Decoders Namespace / AvailableDecoders Class / CreateDecoder Methods / CreateDecoder(Stream,LayoutSettingsRequestDelegate) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
CreateDecoder(Stream,LayoutSettingsRequestDelegate) Method (AvailableDecoders)
In This Topic
Creates the decoder for the image stored in the stream.
Syntax
'Declaration

Public Overloads Shared Function CreateDecoder( _
ByVal stream
The stream that contains the image.
As System.IO.Stream, _
ByVal layoutSettingsRequestMethod
The method that should be called when layout settings are necessary.
As LayoutSettingsRequestDelegate _
) As DecoderBase

Parameters

stream
The stream that contains the image.
layoutSettingsRequestMethod
The method that should be called when layout settings are necessary.

Return Value

Decoder object if decoder was found successfully, null otherwise.
Exceptions
ExceptionDescription
Thrown if stream is null or empty.
Thrown if stream is too small and cannot contains the image.
Requirements

Target Platforms: .NET 11; .NET 10; .NET 9; .NET 8; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also