Image Files: Function Summary

fg_avidone()

Closes the AVI file associated with the specified context descriptor.

fg_aviframe()

Writes one frame to an AVI file.

fg_avihead()

Reads an AVI file header into a 56-byte buffer.

fg_avimake()

Creates an empty AVI file that will be built with fg_aviframe().

fg_aviopen()

Opens an AVI file for reading for subsequent processing by the low-level AVI file support functions. If successful, the file pointer will be positioned at the beginning of the first frame.

fg_avipal()

Retrieves the palette of an image stored in a AVI file and the number of colors in the palette. The palette values are returned as RGB color components, each between 0 and 255.

fg_aviplay()

Plays the next one or more frames in an AVI file previously opened with fg_aviopen().

fg_avisize()

Returns the dimensions of an AVI file.

fg_aviskip()

Advances one or more frames in an AVI file previously opened with fg_aviopen().

fg_bmphead()

Reads a BMP file header into a 54-byte buffer.

fg_bmppal()

Retrieves the palette of an image stored in a BMP file and the number of colors in the palette. The palette values are returned as RGB color components, each between 0 and 255.

fg_bmpsize()

Returns the dimensions of a BMP file.

fg_flicdone()

Closes the flic file associated with the specified context descriptor.

fg_flichead()

Reads a flic file header into a 128-byte buffer.

fg_flicopen()

Opens a flic file for subsequent processing by the low-level flic file support functions. If successful, the file pointer will be positioned at the beginning of the first frame.

fg_flicplay()

Plays the next one or more frames in a flic file previously opened with fg_flicopen().

fg_flicsize()

Returns the dimensions of a flic file.

fg_flicskip()

Advances one or more frames in a flic file previously opened with fg_flicopen(). If the last frame played by fg_flicplay() did so from the fg_imagebuf() buffer, the frame position will be adjusted in the fg_imagebuf() buffer. Otherwise, the flic file position itself will be adjusted.

fg_imagebuf()

Specifies the size and address of the buffer used internally when creating or displaying BMP, PCX, JPEG, FLI/FLC, or Fastgraph's legacy pixel run files. The default internal buffer size is 4,096 bytes. Image display or creation is typically faster when a larger buffer is used, especially when playing flic files.

fg_jpeghead()

Reads a JPEG file header into a 10-byte buffer.

fg_jpegsize()

Returns the image dimensions of a JPEG file.

fg_makebmp()

Creates a BMP file from the specified rectangular region of the active virtual buffer. The region's extremes are expressed in screen space units.

fg_makepcx()

Creates a PCX file from the specified rectangular region of the active virtual buffer. The region's extremes are expressed in screen space units.

fg_pcxhead()

Reads a PCX file header into a 128-byte buffer.

fg_pcxpal()

Retrieves the palette of an image stored in a PCX file and the number of colors in the palette (either 16 or 256). The palette values are returned as RGB color components, each between 0 and 255. If the PCX file includes an extended (256-color) palette, fg_pcxpal() will return the values in the extended palette. Otherwise, fg_pcxpal() will return the values from the 16-color palette in the PCX header.

fg_pcxrange()

Returns the image extents of a PCX file.

fg_pcxsize()

Returns the image dimensions of a PCX file.

fg_reduce()

Reduces a 256-color palette to the specified number of colors, and optionally applies an offset to the resulting palette. The pixels within the clipping region of the active virtual buffer determine which colors are eliminated.

fg_showavi()

Plays an image stored in an AVI file.

fg_showbmp()

Displays an image stored in a BMP file.

fg_showflic()

Plays an image stored in an FLI or FLC file (collectively called flic files).

fg_showjpeg()

Displays an image stored in a JPEG file.

fg_showpcx()

Displays an image stored in a PCX file.

<< Prev

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.