Symbian3/SDK/Source/GUID-0ECBFCA7-D398-53CE-BAF4-86CFB0124A0E.dita
author Graeme Price <GRAEME.PRICE@NOKIA.COM>
Fri, 15 Oct 2010 14:32:18 +0100
changeset 15 307f4279f433
parent 0 89d6a7a84779
permissions -rw-r--r--
Initial contribution of the Adaptation Documentation.

<?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 xml:lang="en" id="GUID-0ECBFCA7-D398-53CE-BAF4-86CFB0124A0E"><title>Copying a Screen Area</title><prolog><metadata><keywords/></metadata></prolog><conbody><p>This topic provides an example that shows how to use <codeph>CBitmapContext::CopyRect()</codeph> to copy from one screen area to another. </p> <codeblock id="GUID-C3E6CD4C-AF8B-593C-B411-A9B07CD5BD48" xml:space="preserve">...
TPoint screenOrigin(0,0); // top left of the screen
TSize area1(100,100); // size of area to copy
rect.SetRect(screenOrigin,area1); // set rectangle to copy
TPoint offset(area1.iWidth,0); // target area to right of copied area
gc.CopyRect(offset,rect); // copy rect to target
...</codeblock> </conbody><related-links><link href="GUID-AFE8A9CC-E026-5396-8E0C-616338B5F5C3.dita"><linktext>BitGDI Tutorials</linktext> </link> <link href="GUID-EAAD1719-C02C-5705-A5C3-993E36441BE6.dita"><linktext>BitGDI Component</linktext> </link> </related-links></concept>