DX9ToolsR4 - Created by: X

SpriteBlt.Draw Method (SimpleTextureCollection, Int32, Rectangle, Vector2, Vector2)

The Draw method is used to draw draw the sprite on the screen.

[Visual Basic]
Overloads Public Sub Draw( _
   ByVal TextureCollection As SimpleTextureCollection, _
   ByVal Index As Integer, _
   ByVal SourceRectangle As Rectangle, _
   ByVal Translation As Vector2, _
   ByVal Scale As Vector2 _
)
[C#]
public void Draw(
   SimpleTextureCollection TextureCollection,
   int Index,
   Rectangle SourceRectangle,
   Vector2 Translation,
   Vector2 Scale
);

Parameters

TextureCollection
A reference to a DX9ToolsR4.SimpleTextureCollection object.
Index
A index inside of the TextureCollection to retrieve the tecture from.
SourceRectangle
A source rectangle determining what part of the texture to draw.
Translation
The location on the screen to draw the sprite.
Scale
The scaling to use when drawing the sprite.

See Also

SpriteBlt Class | CBX.Libs.DX9ToolsR4.Sprites Namespace | SpriteBlt.Draw Overload List