fg_pcxhead()

Win32 DirectX Fastgraph/Light

Prototype

int fg_pcxhead (char *filename, void *header);

Function fg_pcxhead (ByVal filename As String, header() As Any) As Long

function fg_pcxhead (filename : string; var header) : integer;

Description

The fg_pcxhead() function reads a PCX file header into a 128-byte buffer.

Parameters

filename is the name of the PCX file. It may include a path specification and must be terminated by a zero byte.

header is the name of the buffer to receive the PCX file header. Its size must be at least 128 bytes.

Return value

0 = Success

-1 = The specified file does not exist

-2 = The specified file is not a PCX file

Restrictions

none

See also

fg_pcxpal(), fg_pcxrange(), fg_pcxsize(), fg_showpcx()

Examples

Image, ImgProc

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.