C# Class SixLabors.ImageSharp.Textures.Formats.Ktx.KtxDecoderCore

Performs the ktx decoding operation.
Exibir arquivo Open project: SixLabors/ImageSharp.Textures

Public Methods

Method Description
DecodeTexture ( Stream stream ) : Texture

Decodes the texture from the specified stream.

Identify ( Stream currentStream ) : ITextureInfo

Reads the raw texture information from the specified stream.

KtxDecoderCore ( Configuration configuration, IKtxDecoderOptions options ) : System.IO

Initializes a new instance of the KtxDecoderCore class.

Private Methods

Method Description
ReadFileHeader ( Stream stream ) : void

Reads the dds file header from the stream.

Method Details

DecodeTexture() public method

Decodes the texture from the specified stream.
public DecodeTexture ( Stream stream ) : Texture
stream Stream The stream, where the texture should be decoded from. Cannot be null.
return Texture

Identify() public method

Reads the raw texture information from the specified stream.
public Identify ( Stream currentStream ) : ITextureInfo
currentStream Stream The containing texture data.
return ITextureInfo

KtxDecoderCore() public method

Initializes a new instance of the KtxDecoderCore class.
public KtxDecoderCore ( Configuration configuration, IKtxDecoderOptions options ) : System.IO
configuration Configuration The configuration.
options IKtxDecoderOptions The options.
return System.IO