Display Simple Graphics library  v0.5
Library containing shape, text, and bitmap drawing functions called by various display drivers
Functions
drawCopy.c File Reference
#include "simplegfx.h"

Functions

void drawCopy (screen_t *dev, int x, int y, int w, int h, int x0, int y0)
 Copies a rectagle and draws it at another location on the screen. More...
 

Function Documentation

◆ drawCopy()

void drawCopy ( screen_t dev,
int  x,
int  y,
int  w,
int  h,
int  x1,
int  y1 
)

Copies a rectagle and draws it at another location on the screen.

Parameters
devPointer to the display's device structure returned by the initialization function.
xHorizontal coordinate of the top-left corner of the rectangle to be copied.
yVertical coordinate of the top-left corner of the rectagle to be copied.
wWidth of the rectagle to be copied.
hHeight of the rectagle to be copied.
x1Horizontal coordinate of the location to paste the copied rectagle to.
y1Vertical coordinate of the location to paste the copied rectagle to.