C# Class ValveResourceFormat.ThirdParty.DDSImage

Datei anzeigen Open project: SteamDatabase/ValveResourceFormat

Public Methods

Method Description
UncompressDXT1 ( BinaryReader r, int w, int h ) : Bitmap
UncompressDXT5 ( BinaryReader r, int w, int h, bool yCoCg ) : Bitmap

Private Methods

Method Description
ClampColor ( int a ) : byte
DecompressBlockDXT1 ( int x, int y, int width, byte blockStorage, byte &pixels, int stride ) : void
DecompressBlockDXT5 ( int x, int y, int width, byte blockStorage, byte &pixels, int stride, bool yCoCg ) : void

Method Details

UncompressDXT1() public static method

public static UncompressDXT1 ( BinaryReader r, int w, int h ) : Bitmap
r System.IO.BinaryReader
w int
h int
return System.Drawing.Bitmap

UncompressDXT5() public static method

public static UncompressDXT5 ( BinaryReader r, int w, int h, bool yCoCg ) : Bitmap
r System.IO.BinaryReader
w int
h int
yCoCg bool
return System.Drawing.Bitmap