Метод | Описание | |
---|---|---|
DirectDrawSpriteSurface ( string spriteName, string spriteImagePath, int xFrames, int yFrames ) : System |
Creates a new sprite sheet with the given name from an image. The sheet is broken into sprites given the number of horizontal and vertical frames available on this sheet.
|
|
GrabSprite ( int xFrame, int yFrame, |
Retreive a sprite that has to be drawn within the given destination rectangle, given the bounds of the viewport.
|
|
GrabSprite ( int xFrame, int yFrame, |
Retreive a sprite that has to be drawn within the given destination rectangle, given the bounds of the viewport. Also contains a scaling factor.
|
|
GrabSprite ( int xFrame, int yFrame ) : RECT |
Grab a sprite given the x,y frame offset
|
public DirectDrawSpriteSurface ( string spriteName, string spriteImagePath, int xFrames, int yFrames ) : System | ||
spriteName | string | The name of the sprite sheet |
spriteImagePath | string | The path to the image to load. |
xFrames | int | The number of horizontal frames on this sheet. |
yFrames | int | The number of vertical frames on this sheet. |
Результат | System |
public GrabSprite ( int xFrame, int yFrame, |
||
xFrame | int | Retrieve the Xth horizontal frame. |
yFrame | int | Retrieve the Yth vertical frame. |
dest | The destination rectangle for the sprite. | |
bounds | The view rectangle bounds. | |
Результат |
public GrabSprite ( int xFrame, int yFrame, |
||
xFrame | int | Retrieve the Xth horizontal frame. |
yFrame | int | Retrieve the Yth vertical frame. |
dest | The destination rectangle for the sprite. | |
bounds | The view rectangle bounds. | |
factor | int | A scaling factor. |
Результат |
public GrabSprite ( int xFrame, int yFrame ) : RECT | ||
xFrame | int | Retrieve the Xth horizontal frame. |
yFrame | int | Retrieve the Yth vertical frame. |
Результат | RECT |