fg_vbtccopy()Win32 DirectX Fastgraph/Light Prototype void fg_vbtccopy (int minx, int maxx, int miny, int maxy, int newx, int newy, int source, int dest); Sub fg_vbtccopy (ByVal minx As Long, ByVal maxx As Long, ByVal miny As Long, ByVal maxy As Long, ByVal newx As Long, ByVal newy As Long, ByVal source As Long, ByVal dest As Long) procedure fg_vbtccopy (minx, maxx, miny, maxy, newx, newy, source, dest : integer); Description The fg_vbtccopy() function copies a rectangular region from one virtual buffer to another, or to a non-overlapping region in the same virtual buffer. It excludes any pixels whose color is transparent. As with Fastgraph's other block transfer functions, no clipping is performed. The fg_tcdefine() function defines which colors are transparent. Parameters minx is the x coordinate of the source region's left edge. maxx is the x coordinate of the source region's right edge. It must be greater than or equal to the value of minx. miny is the y coordinate of the source region's top edge. maxy is the y coordinate of the source region's bottom edge. It must be greater than or equal to the value of miny. newx is the x coordinate of the destination region's left edge. newy is the y coordinate of the destination region's bottom edge. source is the handle of the virtual buffer containing the source region. dest is the handle of the virtual buffer for the destination region. Return value none Restrictions The source and destination virtual buffers must be the same color depth. If source and dest reference the same virtual buffer, the source and destination regions must not overlap. When using DirectX, the source and destination virtual buffers must not be locked. See also fg_tcdefine(), fg_vbcopy(), fg_vbopen(), fg_vbtcopy(), fg_vbtzcopy() Examples
|
 
copyright 2001 Ted Gruber Software, Inc.