fg_bmpsize()

Win32 DirectX Fastgraph/Light

Prototype

void fg_bmpsize (void *header, int *width, int *height);

Sub fg_bmpsize (header() As Any, width As Long, height As Long)

procedure fg_bmpsize (var header; var width, height : integer);

Description

The fg_bmpsize() function returns the dimensions for the BMP image associated with the specified BMP file header.

Parameters

header is the name of the buffer containing the 54-byte BMP file header.

width receives the BMP image width in pixels. If header does not contain a valid BMP file header, width will be set to -1.

height receives the BMP image height in pixels. If header does not contain a valid BMP file header, height will be set to -1.

Return value

none

Restrictions

none

See also

fg_bmphead(), fg_showbmp()

Examples

Image, ImgProc

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.