VectorSprite: drawing sprites


The VectorSprite example creates a simple animated sprite (a rotating line), and creates the sprite's bitmaps by creating and drawing to off-screen bitmaps within the application. No redraw events are caused by the sprite.


Click on the following link to download the example:

Click: browse to view the example code.

Class Defined

CSprite: Demonstrates how to use class RWsSprite by setting up the sprite members to contain bitmaps then appending them to the sprite. The bitmaps are off screen bitmaps drawn to using a graphics context

Class Summary