Example: Reading Image Files

Example FGIW4 uses fgi_read() to read the CLOUDS.PCX image from EXAMPLE.FGI into a dynamically allocated buffer whose size is determined by fgi_filesize(). After retrieving the image, the program points fg_imagebuf() to that buffer so it can display the image from an array with fg_showpcx().

C/C++ version

C++Builder version

Delphi version

Visual Basic version

<< Prev

Next >>

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.