BitBltBuf

Copies pixels from one buffer into the currently active buffer

Declaration

void GA_bufferFuncs::BitBltBuf(
GA_buf *buf,
N_int32 srcLeft,
N_int32 srcTop,
N_int32 width,
N_int32 height,
N_int32 dstLeft,
N_int32 dstTop,
N_int32 mix)

Prototype In

snap/graphics.h

Parameters

buf | SNAP buffer to blit to the active surface
srcLeft | Left coordinate of the source rectangle to copy
srcTop | Top coordinate of the source rectangle to copy
width | Width of the rectangle in pixels
height | Height of the rectangle in scanlines
dstLeft | Left coordinate of destination
dstTop | Top coordinate of destination
mix | Mix code for the copy (GA_mixCodesType)

Description

This function copies a rectangular region from the source buffer to the active drawing surface, copying from (srcLeft, srcTop, srcLeft+width-1, srcTop+height-1) in the source buffer to (dstLeft, dstTop) in the active buffer. The specified mix is used to combine the pixels in the active buffer. This function will also correctly handle cases of overlapping regions if the source buffer is the same as the active buffer.

See Also

BitBltPattBuf, BitBltColorPattBuf, SrcTransBltBuf, DstTransBltBuf, BitBltPlaneMaskedBuf, BitBltFxBuf, DrawRectBuf

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com