VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Codecs.Decoders Namespace / AvailableDecoders Class / CreateDecoder(Stream) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
    CreateDecoder(Stream) Method (AvailableDecoders)
    In This Topic
    Creates the decoder for the image stored in the stream.
    Syntax
    'Declaration
    
    Public Shared Function CreateDecoder( _
    ByVal stream
    The stream that contains the image.
    As System.IO.Stream _
    ) As DecoderBase
    public static DecoderBase CreateDecoder(
    System.IO.Stream stream
    )
    public: static DecoderBase* CreateDecoder(
    System.IO.Stream* stream
    )
    public:
    static DecoderBase^ CreateDecoder(
    System.IO.Stream^ stream
    )

    Parameters

    stream
    The stream that contains the image.

    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 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also