CopyWindow Function

Microchip Graphics Library

Microchip Graphics Library
CopyWindow Function
C
WORD CopyWindow(
    DWORD srcAddr, 
    DWORD dstAddr, 
    \ WORD srcX, 
    WORD srcY, 
    \ WORD dstX, 
    WORD dstY, 
    \ WORD width, 
    WORD height
);
Overview

A windows is a rectangular area with the given width and height located in the given base source address. The source and destination window can be located in the same base address. If this is the case, then srcAddr = dstAddr. The operation is similar to CopyPageWindow() but instead of using page numbers, addresses are used for versatility. This is a blocking function.

Input Parameters
Input Parameters 
Description 
DWORD srcAddr 
Base Address of the source window, 
\ WORD srcX 
x location of the left top corner of the source window respect to the srcPage. 
WORD srcY 
y location of the left top corner of the source window respect to the srcPage. 
\ WORD dstX 
x location of the left top corner of the destination window respect to the dstPage. 
WORD dstY 
y location of the left top corner of the destination window respect to the dstPage. 
\ WORD width 
the width in pixels of the window to copy 
WORD height 
the height in pixels of the window to copy 
dstPage 
Base Address of the destination window, 
Returns

None

Preconditions

none

Side Effects

none

Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved