C# Class PGMEBackend.Spritesheet

Inheritance: IDisposable
显示文件 Open project: Diegoisawesome/AwesomeMapEditor-old Class Usage Examples

Public Properties

Property Type Description
ColumnSize int
Columns int
RowSize int
Rows int
Texture Texture2D
TileHeight int
TileWidth int

Public Methods

Method Description
DebugDraw ( double scale ) : void
Dispose ( ) : void
Draw ( int sprite, double x, double y, bool xFlip, bool yFlip, double scale ) : void
Draw ( int sprite, double x, double y, bool xFlip, bool yFlip, double scale, int alpha ) : void
Draw ( int sprite, double x, double y, double scale ) : void
Draw ( int sprite, double x, double y, double scale, int alpha ) : void
Load ( Bitmap texturedbitmap, int width, int height ) : Spritesheet
Load ( Bitmap TextureBitmap, int width, int height, TextureFilteringMode mode ) : Spritesheet
Load ( string file, int width, int height ) : Spritesheet
Load ( string file, int width, int height, TextureFilteringMode mode ) : Spritesheet

Method Details

DebugDraw() public method

public DebugDraw ( double scale ) : void
scale double
return void

Dispose() public method

public Dispose ( ) : void
return void

Draw() public method

public Draw ( int sprite, double x, double y, bool xFlip, bool yFlip, double scale ) : void
sprite int
x double
y double
xFlip bool
yFlip bool
scale double
return void

Draw() public method

public Draw ( int sprite, double x, double y, bool xFlip, bool yFlip, double scale, int alpha ) : void
sprite int
x double
y double
xFlip bool
yFlip bool
scale double
alpha int
return void

Draw() public method

public Draw ( int sprite, double x, double y, double scale ) : void
sprite int
x double
y double
scale double
return void

Draw() public method

public Draw ( int sprite, double x, double y, double scale, int alpha ) : void
sprite int
x double
y double
scale double
alpha int
return void

Load() public static method

public static Load ( Bitmap texturedbitmap, int width, int height ) : Spritesheet
texturedbitmap System.Drawing.Bitmap
width int
height int
return Spritesheet

Load() public static method

public static Load ( Bitmap TextureBitmap, int width, int height, TextureFilteringMode mode ) : Spritesheet
TextureBitmap System.Drawing.Bitmap
width int
height int
mode TextureFilteringMode
return Spritesheet

Load() public static method

public static Load ( string file, int width, int height ) : Spritesheet
file string
width int
height int
return Spritesheet

Load() public static method

public static Load ( string file, int width, int height, TextureFilteringMode mode ) : Spritesheet
file string
width int
height int
mode TextureFilteringMode
return Spritesheet

Property Details

ColumnSize public_oe property

public int ColumnSize
return int

Columns public_oe property

public int Columns
return int

RowSize public_oe property

public int RowSize
return int

Rows public_oe property

public int Rows
return int

Texture public_oe property

public Texture2D,PGMEBackend Texture
return Texture2D

TileHeight public_oe property

public int TileHeight
return int

TileWidth public_oe property

public int TileWidth
return int