C# Class ctpktool.Etc

Mostra file Open project: SciresM/FEAT Class Usage Examples

Public Methods

Method Description
Clamp ( int value, int min, int max ) : int
GetEtc1Length ( Size size, bool hasAlpha, int levels = 1 ) : int
GetEtc1RasterData ( byte imageData, Size size, int y, bool hasAlpha, Bitmap bmp, int outputOffset ) : void
GetEtc1RasterData ( byte imageData, Size size, int y, bool hasAlpha, byte output, int outputOffset ) : void

Private Methods

Method Description
Etc ( ) : System
GetEtc1BlockStart ( Size size, int x, int y, bool hasAlpha ) : int

Method Details

Clamp() public static method

public static Clamp ( int value, int min, int max ) : int
value int
min int
max int
return int

GetEtc1Length() public static method

public static GetEtc1Length ( Size size, bool hasAlpha, int levels = 1 ) : int
size System.Drawing.Size
hasAlpha bool
levels int
return int

GetEtc1RasterData() public static method

public static GetEtc1RasterData ( byte imageData, Size size, int y, bool hasAlpha, Bitmap bmp, int outputOffset ) : void
imageData byte
size System.Drawing.Size
y int
hasAlpha bool
bmp System.Drawing.Bitmap
outputOffset int
return void

GetEtc1RasterData() public static method

public static GetEtc1RasterData ( byte imageData, Size size, int y, bool hasAlpha, byte output, int outputOffset ) : void
imageData byte
size System.Drawing.Size
y int
hasAlpha bool
output byte
outputOffset int
return void