CopyBlock Function

Microchip Graphics Library

Microchip Graphics Library
CopyBlock Function
C
WORD CopyBlock(
    DWORD srcAddr, 
    DWORD dstAddr, 
    DWORD srcOffset, 
    DWORD dstOffset, 
    WORD width, 
    WORD height
);
Overview

Copies a block of data from source specified by srcAddr and srcOffset to the destination specified by dstAddr and dstOffset. This is similar to the CopyWindow() and but instead of using left, top position of the source and destination, it uses offsets instead. This is a blocking function.

Input Parameters
Input Parameters 
Description 
DWORD srcAddr 
the base address of the data to be moved 
DWORD dstAddr 
the base address of the new location of the moved data 
DWORD srcOffset 
offset of the data to be moved with respect to the source base address. 
DWORD dstOffset 
offset of the new location of the moved data respect to the source base address. 
WORD width 
width of the block of data to be moved 
WORD height 
height of the block of data to be moved 
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