Symbian3/SDK/Source/GUID-0ECBFCA7-D398-53CE-BAF4-86CFB0124A0E.dita
changeset 7 51a74ef9ed63
parent 0 89d6a7a84779
equal deleted inserted replaced
6:43e37759235e 7:51a74ef9ed63
       
     1 <?xml version="1.0" encoding="utf-8"?>
       
     2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
       
     3 <!-- This component and the accompanying materials are made available under the terms of the License 
       
     4 "Eclipse Public License v1.0" which accompanies this distribution, 
       
     5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
       
     6 <!-- Initial Contributors:
       
     7     Nokia Corporation - initial contribution.
       
     8 Contributors: 
       
     9 -->
       
    10 <!DOCTYPE concept
       
    11   PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
       
    12 <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">...
       
    13 TPoint screenOrigin(0,0); // top left of the screen
       
    14 TSize area1(100,100); // size of area to copy
       
    15 rect.SetRect(screenOrigin,area1); // set rectangle to copy
       
    16 TPoint offset(area1.iWidth,0); // target area to right of copied area
       
    17 gc.CopyRect(offset,rect); // copy rect to target
       
    18 ...</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>