C# Class ctpktool.Texture

Mostra file Open project: SciresM/FEAT Class Usage Examples

Public Properties

Property Type Description
Data byte[]
HasAlpha bool
Height int
TextureFormat TextureFormat
Width int

Public Methods

Method Description
GetBitmap ( ) : Bitmap
GetPixelSize ( TextureFormat textureFormat, int width, int height ) : uint
GetRGBA ( ) : byte[]
GetScrambledTextureData ( Bitmap bmp ) : byte[]
Texture ( ) : System
Texture ( int width, int height, TextureFormat textureFormat, byte data ) : System

Private Methods

Method Description
GetPixel ( int &ofs, decimal &adjustment ) : Color
GetPlainRasterData ( Bitmap bmp ) : void
GetPlainRasterData ( byte &data ) : void
IsPowerOfTwo ( int x ) : bool
nlpo2 ( int x ) : int

Method Details

GetBitmap() public method

public GetBitmap ( ) : Bitmap
return System.Drawing.Bitmap

GetPixelSize() public static method

public static GetPixelSize ( TextureFormat textureFormat, int width, int height ) : uint
textureFormat TextureFormat
width int
height int
return uint

GetRGBA() public method

public GetRGBA ( ) : byte[]
return byte[]

GetScrambledTextureData() public method

public GetScrambledTextureData ( Bitmap bmp ) : byte[]
bmp System.Drawing.Bitmap
return byte[]

Texture() public method

public Texture ( ) : System
return System

Texture() public method

public Texture ( int width, int height, TextureFormat textureFormat, byte data ) : System
width int
height int
textureFormat TextureFormat
data byte
return System

Property Details

Data public_oe property

public byte[] Data
return byte[]

HasAlpha public_oe property

public bool HasAlpha
return bool

Height public_oe property

public int Height
return int

TextureFormat public_oe property

public TextureFormat TextureFormat
return TextureFormat

Width public_oe property

public int Width
return int