Symbian3/PDK/Source/GUID-CF6355EF-3241-5196-AEBC-1337E1AE2259.dita
author Dominic Pinkman <Dominic.Pinkman@Nokia.com>
Fri, 22 Jan 2010 18:26:19 +0000
changeset 1 25a17d01db0c
child 3 46218c8b8afa
permissions -rw-r--r--
Addition of the PDK content and example code for Documentation_content according to Feature bug 1607 and bug 1608

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