C# Class Ohana3DS_Transfigured.Ohana.TextureCodec

Afficher le fichier Open project: Quibilia/Ohana3DS-Transfigured

Méthodes publiques

Méthode Description
decode ( byte data, int width, int height, RenderBase format ) : Bitmap

Decodes a PICA200 Texture.

Private Methods

Méthode Description
etc1Decode ( byte input, int width, int height, bool alpha ) : byte[]
etc1DecodeBlock ( byte data ) : byte[]
etc1Pixel ( uint r, uint g, uint b, int x, int y, uint block, uint table ) : Color
etc1Scramble ( int width, int height ) : int[]
saturate ( int value ) : byte

Method Details

decode() public static méthode

Decodes a PICA200 Texture.
public static decode ( byte data, int width, int height, RenderBase format ) : Bitmap
data byte Buffer with the Texture
width int Width of the Texture
height int Height of the Texture
format RenderBase Pixel Format of the Texture
Résultat System.Drawing.Bitmap