DX9ToolsR4 - Created by: X

SpriteBlt.Draw Method (Texture, Rectangle, Vector2, Vector2, Single, Int32)

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

[Visual Basic]
Overloads Public Sub Draw( _
   ByVal Texture As Texture, _
   ByVal SourceRectangle As Rectangle, _
   ByVal Translation As Vector2, _
   ByVal RotationCenter As Vector2, _
   ByVal Rotation As Single, _
   ByVal Color As Integer _
)
[C#]
public void Draw(
   Texture Texture,
   Rectangle SourceRectangle,
   Vector2 Translation,
   Vector2 RotationCenter,
   float Rotation,
   int Color
);

Parameters

Texture
Reference to a source texture that the SpriteBlt class will draw with.
SourceRectangle
A source rectangle determining what part of the texture to draw.
Translation
The location on the screen to draw the sprite.
RotationCenter
The axis from which the sprite will rotate around.
Rotation
The rotation value in radians to rotate the sprite.
Color
Specifies what color the sprite will be drawn with. For example if the color RGB was (255, 0, 0) then the sprite would be drawn with a red hue.

See Also

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