fg_bmphead()

Win32 DirectX Fastgraph/Light

Prototype

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

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

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

Description

The fg_bmphead() function reads a BMP file header into a 54-byte buffer.

Parameters

filename is the name of the BMP 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 BMP file header. Its size must be at least 54 bytes.

Return value

0 = Success

-1 = The specified file does not exist

-2 = The specified file is not a BMP file

Restrictions

none

See also

fg_bmppal(), fg_bmpsize(), fg_showbmp()

Examples

Image, ImgProc

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.