fg_jpegsize()

Win32 DirectX Fastgraph/Light

Prototype

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

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

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

Description

The fg_jpegsize() function returns the image dimensions for the JPEG image associated with the specified JPEG file header.

Parameters

header is the name of the buffer containing the 10-byte JPEG file header.

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

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

Return value

none

Restrictions

none

See also

fg_jpeghead(), fg_showjpeg()

Examples

Image, ImgProc

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.