diff -r 51a74ef9ed63 -r ae94777fff8f Symbian3/SDK/Source/GUID-CF6355EF-3241-5196-AEBC-1337E1AE2259.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-CF6355EF-3241-5196-AEBC-1337E1AE2259.dita Fri Jun 11 12:39:03 2010 +0100 @@ -0,0 +1,26 @@ + + + + + +BitmapSprite: creating a sprite by loading a bitmap file +

Note: This example is designed to work properly only with +Techview, there is no guarantee that it will work properly with other +interfaces.

+
Description

The BitmapSprite example creates an animated sprite by loading a bitmap (.mbm) file. The sprite is a rotating windmill which can +be moved around the screen using the arrow keys.

As in the +previous example, the sprite is created by setting up the sprite members +to contain bitmaps, then appending them to the sprite. In this example, +however, the bitmaps are loaded from a file rather than created using +off-screen bitmaps drawn to using a graphics context.

+
Download

Click on the following link to download the example: BitmapSprite.zip

Click: browse to view the example code.

+
Classes defined

CSprite: Uses class RWsSprite by setting up the sprite +members to contain bitmaps then appending them to the sprite. In this +example, the bitmaps are loaded from a file.

+
\ No newline at end of file