Export (0) Print
Expand All

Rendering 2D with Sprites and Text

Describes step-by-step procedures for using 2D graphics techniques.

In This Section

What Is a Sprite?
Summarizes the basics of using sprites.
Animating a Sprite
Demonstrates how to animate a sprite from a texture using a custom class.
Drawing a Sprite
Demonstrates how to draw a sprite by using the SpriteBatch class.
Rotating a Sprite
Demonstrates how to rotate a sprite around its center.
Rotating a Group of Sprites
Demonstrates how to rotate a group of sprites around a single point.
Scaling a Sprite
Demonstrates how to scale a sprite using a uniform scale.
Scaling Sprites Based On Screen Size
Demonstrates how to scale sprites using a matrix that is created based on the viewport width.
Tinting a Sprite
Demonstrates how to tint a sprite using a Color value.
Tiling a Sprite
Demonstrates how to draw a sprite repeatedly in the x and y directions in one Draw call.
Drawing a Masked Sprite over a Background
Demonstrates how to draw a foreground and background sprite using the SpriteBatch class, where only part of the foreground sprite masks the background.
Making a Scrolling Background
Demonstrates how to draw a scrolling background sprite using the SpriteBatch class.
Drawing Text with a Sprite
Demonstrates how to import a SpriteFont into a project and to draw text using DrawString.

Related Overview Topics

Accessing Pictures from a Picture Album
Demonstrates how to access pictures in a picture album using the Media API on Windows Phone.

Community Additions

ADD
Show:
© 2014 Microsoft