C# Class ctpktool.Texture

Afficher le fichier Open project: SciresM/FEAT Class Usage Examples

Méthodes publiques

Свойство Type Description
Data byte[]
HasAlpha bool
Height int
TextureFormat TextureFormat
Width int

Méthodes publiques

Méthode 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

Méthode 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 méthode

public GetBitmap ( ) : Bitmap
Résultat System.Drawing.Bitmap

GetPixelSize() public static méthode

public static GetPixelSize ( TextureFormat textureFormat, int width, int height ) : uint
textureFormat TextureFormat
width int
height int
Résultat uint

GetRGBA() public méthode

public GetRGBA ( ) : byte[]
Résultat byte[]

GetScrambledTextureData() public méthode

public GetScrambledTextureData ( Bitmap bmp ) : byte[]
bmp System.Drawing.Bitmap
Résultat byte[]

Texture() public méthode

public Texture ( ) : System
Résultat System

Texture() public méthode

public Texture ( int width, int height, TextureFormat textureFormat, byte data ) : System
width int
height int
textureFormat TextureFormat
data byte
Résultat System

Property Details

Data public_oe property

public byte[] Data
Résultat byte[]

HasAlpha public_oe property

public bool HasAlpha
Résultat bool

Height public_oe property

public int Height
Résultat int

TextureFormat public_oe property

public TextureFormat TextureFormat
Résultat TextureFormat

Width public_oe property

public int Width
Résultat int