Symbian3/PDK/Source/GUID-CF6355EF-3241-5196-AEBC-1337E1AE2259.dita
author Dominic Pinkman <Dominic.Pinkman@Nokia.com>
Tue, 30 Mar 2010 11:56:28 +0100
changeset 5 f345bda72bc4
parent 3 46218c8b8afa
child 9 59758314f811
permissions -rw-r--r--
Week 12 contribution of PDK documentation_content. See release notes for details. Fixes Bug 2054, Bug 1583, Bug 381, Bug 390, Bug 463, Bug 1897, Bug 344, Bug 1319, Bug 394, Bug 1520, Bug 1522, Bug 1892"

<?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>