fg_pcxrange()

Win32 DirectX Fastgraph/Light

Prototype

void fg_pcxrange (void *header, int *minx, int *maxx, int *miny, int *maxy);

Sub fg_pcxrange (header() As Any, minx As Long, maxx As Long, miny As Long, maxy As Long)

procedure fg_pcxrange (var header; var minx, maxx, miny, maxy : integer);

Description

The fg_pcxrange() function returns the image extents for the PCX image associated with the specified PCX file header.

Parameters

header is the name of the buffer containing the 128-byte PCX file header.

minx receives the x coordinate of the image's left edge. If header does not contain a valid PCX file header, minx will be set to -1.

maxx receives the x coordinate of the image's right edge. If header does not contain a valid PCX file header, maxx will be set to -1.

miny receives the y coordinate of the image's top edge. If header does not contain a valid PCX file header, miny will be set to -1.

maxy receives the y coordinate of the image's bottom edge. If header does not contain a valid PCX file header, maxy will be set to -1.

Return value

none

Restrictions

none

See also

fg_pcxhead(), fg_pcxsize(), fg_showpcx()

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.