fg_vbprint()

Win32 DirectX Fastgraph/Light

Prototype

void fg_vbprint (int minx, int maxx, int miny, int maxy, int xmin, int xmax, int ymin, int ymax, int units);

Sub fg_vbprint (ByVal minx As Long, ByVal maxx As Long, ByVal miny As Long, ByVal maxy As Long, ByVal xmin As Long, ByVal xmax As Long, ByVal ymin As Long, ByVal ymax As Long, ByVal units As Long)

procedure fg_vbprint (minx, maxx, miny, maxy, xmin, xmax, ymin, ymax, units : integer);

Description

The fg_vbprint() function prints a rectangular region from the active virtual buffer on the active printer, scaling the printed image as requested. Source coordinates are expressed in screen space, while destination coordinates are expressed in the specified units.

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.

xmin is the x coordinate of the destination region's left edge.

xmax is the x coordinate of the destination region's right edge. It must be greater than or equal to the value of xmin.

ymin is the y coordinate of the destination region's top edge.

ymax is the y coordinate of the destination region's bottom edge. It must be greater than or equal to the value of ymin.

units specifies the units of the destination coordinates, as shown here:

Value

Meaning

Value

Meaning

0

device units (no translation)

1

percentage

4

millimeters

2

0.01 inches

5

0.1 millimeters

3

0.001 inches

6

0.01 millimeters

Return value

none

Restrictions

none

See also

fg_printdc(), fg_printer()

Examples

Prdemo

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.