fg_vbpaste()

Win32 DirectX Fastgraph/Light

Prototype

void fg_vbpaste (int minx, int maxx, int miny, int maxy, int newx, int newy);

Sub fg_vbpaste (ByVal minx As Long, ByVal maxx As Long, ByVal miny As Long, ByVal maxy As Long, ByVal newx As Long, ByVal newy As Long)

procedure fg_vbpaste (minx, maxx, miny, maxy, newx, newy : integer);

Description

The fg_vbpaste() function copies a rectangular region from the active virtual buffer to the window's client area. The WM_PAINT message handler usually calls fg_vbpaste() or fg_vbscale().

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, expressed in client units.

newy is the y coordinate of the destination region's bottom edge, expressed in client units.

Return value

none

Restrictions

When using DirectX, the active virtual buffer must not be locked.

See also

fg_vb2clip(), fg_vbscale()

Examples

Columns, Display, FrameDD, FullScr, Graphics, KBdemo, Panner, SWchars, TMcubeX

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.