Symbian3/PDK/Source/GUID-CF6355EF-3241-5196-AEBC-1337E1AE2259.dita
author Dominic Pinkman <Dominic.Pinkman@Nokia.com>
Thu, 11 Mar 2010 18:02:22 +0000
changeset 3 46218c8b8afa
parent 1 25a17d01db0c
child 5 f345bda72bc4
permissions -rw-r--r--
week 10 bug fix submission (SF PDK version): Bug 1892, Bug 1897, Bug 1319. Also 3 or 4 documents were found to contain code blocks with SFL, which has been fixed. Partial fix for broken links, links to Forum Nokia, and the 'Symbian platform' terminology issues.

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
<!-- This component and the accompanying materials are made available under the terms of the License 
"Eclipse Public License v1.0" which accompanies this distribution, 
and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
<!-- Initial Contributors:
    Nokia Corporation - initial contribution.
Contributors: 
-->
<!DOCTYPE concept
  PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="GUID-CF6355EF-3241-5196-AEBC-1337E1AE2259" xml:lang="en"><title>BitmapSprite:
creating a sprite by loading a bitmap file</title><prolog><metadata><keywords/></metadata></prolog><conbody>
<p> <b>Note:</b> This example is designed to work properly only with Techview,
there is no guarantee that it will work properly with other interfaces. </p>
<section><title>Description</title> <p>The <filepath>BitmapSprite</filepath> example
creates an animated sprite by loading a bitmap (<filepath>.mbm</filepath>)
file. The sprite is a rotating windmill which can be moved around the screen
using the arrow keys. </p> <p>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. </p> </section>
<section id="GUID-9BD7D67D-F43A-51FF-A5EA-2F82E82D92DC"><title>Download</title> <p>Click
on the following link to download the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-5aa5e49e-ff8f-4fc3-bdc3-d20004aea9a9.zip" scope="external">BitmapSprite.zip</xref></p><p>Click: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-5aa5e49e-ff8f-4fc3-bdc3-d20004aea9a9.html" scope="peer">browse</xref> to view the example code. </p> </section>
<section><title>Classes defined</title> <p> <codeph>CSprite</codeph>: Uses
class <codeph>RWsSprite</codeph> 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. </p> </section>
</conbody></concept>