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

Performs the ktx decoding operation.
Afficher le fichier Open project: SixLabors/ImageSharp.Textures

Méthodes publiques

Méthode 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

Méthode Description
ReadFileHeader ( Stream stream ) : void

Reads the dds file header from the stream.

Method Details

DecodeTexture() public méthode

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.
Résultat Texture

Identify() public méthode

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

KtxDecoderCore() public méthode

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