Bagikan melalui


SpriteBatch.Draw Method

Adds a sprite to a batch of sprites to be rendered.

Overload List

Name Description
SpriteBatch.Draw (Texture2D, Rectangle, Color) Adds a sprite to a batch of sprites for rendering using the specified texture, destination rectangle, and color.
SpriteBatch.Draw (Texture2D, Rectangle, Nullable<Rectangle>, Color) Adds a sprite to a batch of sprites for rendering using the specified texture, destination rectangle, source rectangle, and color.
SpriteBatch.Draw (Texture2D, Rectangle, Nullable<Rectangle>, Color, Single, Vector2, SpriteEffects, Single) Adds a sprite to a batch of sprites for rendering using the specified texture, destination rectangle, source rectangle, color, rotation, origin, effects and layer.
SpriteBatch.Draw (Texture2D, Vector2, Color) Adds a sprite to a batch of sprites for rendering using the specified texture, position and color.
SpriteBatch.Draw (Texture2D, Vector2, Nullable<Rectangle>, Color) Adds a sprite to a batch of sprites for rendering using the specified texture, position, source rectangle, and color.
SpriteBatch.Draw (Texture2D, Vector2, Nullable<Rectangle>, Color, Single, Vector2, Single, SpriteEffects, Single) Adds a sprite to a batch of sprites for rendering using the specified texture, position, source rectangle, color, rotation, origin, scale, effects, and layer.
SpriteBatch.Draw (Texture2D, Vector2, Nullable<Rectangle>, Color, Single, Vector2, Vector2, SpriteEffects, Single) Adds a sprite to a batch of sprites for rendering using the specified texture, position, source rectangle, color, rotation, origin, scale, effects and layer.

See Also

Tasks

Drawing a Sprite

Concepts

What Is a Sprite?

Reference

SpriteBatch Class
SpriteBatch Members
Microsoft.Xna.Framework.Graphics Namespace