C# Class Ohana3DS_Transfigured.Ohana.TextureCodec

显示文件 Open project: Quibilia/Ohana3DS-Transfigured

Public Methods

Method Description
decode ( byte data, int width, int height, RenderBase format ) : Bitmap

Decodes a PICA200 Texture.

Private Methods

Method 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 method

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
return System.Drawing.Bitmap