C# Class CharLS.JpegLSBitmapDecoder

Provides a method to create a BitmapSource from a JPEG-LS encoded bitmap stream. The .NET Imaging namespace provides a set of build-in BitmapDecoders. This set of classes is however not extensible and by design the base class BitmapDecoder is not derivable by external classes. This static class can be used in the same pattern, but is only provides the primary functionality to convert a stream into a BitmapSource.
Mostrar archivo Open project: team-charls/charls

Public Methods

Method Description
JpegLSBitmapDecoder ( Stream bitmapStream ) : System

Initializes a new instance of the JpegLSBitmapDecoder class.

Private Methods

Method Description
GetPixelFormat ( JpegLSMetadataInfo info ) : System.Windows.Media.PixelFormat

Method Details

JpegLSBitmapDecoder() public method

Initializes a new instance of the JpegLSBitmapDecoder class.
The bitmap stream is not a JPEG-LS encoded image. The native DLL required to decode the JPEG-LS bit stream could not be loaded.
public JpegLSBitmapDecoder ( Stream bitmapStream ) : System
bitmapStream Stream The bitmap stream to decode.
return System