fg_jpeghead()Win32 DirectX Fastgraph/Light Prototype int fg_jpeghead (char *filename, void *header); Function fg_jpeghead (ByVal filename As String, header() As Any) As Long function fg_jpeghead (filename : string; var header) : integer; Description The fg_jpeghead() function reads a JPEG file header into a 10-byte buffer. Strictly speaking, JPEG files do not have formal headers, but fg_jpeghead() returns relevant information from the file's start of frame segment. We call it a header for consistency with other image file formats. Parameters filename is the name of the JPEG file. It may include a path specification and must be terminated by a zero byte. header is the name of the 10-byte buffer to receive the JPEG file header. Return value 0 = Success -1 = The specified file does not exist -2 = The specified file is not a baseline JPEG file Restrictions none See also Examples
|
 
copyright 2001 Ted Gruber Software, Inc.