GrCopyArea()

Name

GrCopyArea() -- Copy from one drawable to another

Synopsis

void GrCopyArea ( GR_DRAW_ID id , GR_GC_ID gc , GR_COORD x , GR_COORD y , GR_SIZE width , GR_SIZE height , GR_DRAW_ID srcid , GR_COORD srcx , GR_COORD srcy , int op );

Description

This function copies a rectangle of width and height with upper left corner at coordinates (srcx,srcy) on the source drawable, srcid, to the coordinates (x,y) on the destination drawable id.

Parameters

TypeNameDescription
GR_DRAW_IDid The ID of the destination drawable.
GR_GC_IDgcThe ID of the graphics context to use when copying the area.
GR_COORDxThe X coordinate of the area, relative to the destination drawable.
GR_COORDyThe Y coordinate of the area, relative to the destination drawable.
GR_SIZEwidthThe width of the area.
GR_SIZEheightThe height of the area.
GR_DRAW_IDsrcidThe ID of the source drawable.
GR_COORDsrcxThe X coordinate of the area, relative to the source drawable.
GR_COORDsrcyThe Y coordinate of the area, relative to the source drawable.
intopThe ROP code for the bit blitter to use when making the copy. In most cases MWROP_SRCCOPY is a good choice. You can use the ROP codes shown below.

ROP Codes

The folowing table lists the ROP (Raster OPeration) codes that can be used with the GrCopyArea() function.

Table 2-1. ROP Codes

MWROP_SRCCOPYMWROP_SRCTRANSCOPYMWROP_BLENDCONSTANT
MWROP_BLENDFGBGMWROP_BLENDCHANNELMWROP_STRETCH
MWROP_SRCANDMWROP_SRCINVERTMWROP_BLACKNESS

See Also

GrReadArea(), GrArea().