Méthode | Description | |
---|---|---|
BitmapDrawable ( ) : System | ||
Draw ( |
||
GetHeight ( double elapsedMS ) : int | ||
GetSourceRectangle ( double elapsedMS ) : Rectangle? |
Returns a Rectangle object specifing the SourceRectangle to be used when drawing the SourceTexture specified with GetSourceTexture. Takes an elapsedMS parameter in the case where the Bitmap sublcass would return different SourceRectangles based on the current time (example Animation).
|
|
GetSourceTexture ( double elapsedMS ) : Microsoft.Xna.Framework.Graphics.Texture2D |
Returns the SourceTexture from which all Draw operations will be performed from. Takes an elapsedMS parameter in the case where the Bitmap subclass would return different Textures based on the current time.
|
|
GetWidth ( double elapsedMS ) : int | ||
IsFinished ( double elapsedMS ) : bool |
BitmapDrawable provides a default out-of-the-box value - however it is overridable in the case where the value changes with the specified parameter.
|
public Draw ( |
||
spriteBatch | ||
destRectangle | ||
color | Color | |
rotation | float | |
origin | Vector2 | |
spriteEffects | SpriteEffects | |
layerDepth | float | |
elapsedMS | double | |
Résultat | void |
public GetHeight ( double elapsedMS ) : int | ||
elapsedMS | double | |
Résultat | int |
public GetSourceRectangle ( double elapsedMS ) : Rectangle? | ||
elapsedMS | double | |
Résultat | Rectangle? |
public GetSourceTexture ( double elapsedMS ) : Microsoft.Xna.Framework.Graphics.Texture2D | ||
elapsedMS | double | |
Résultat | Microsoft.Xna.Framework.Graphics.Texture2D |
public IsFinished ( double elapsedMS ) : bool | ||
elapsedMS | double | |
Résultat | bool |