FGILIB Examples

In this section, we'll present a few example FGILIB commands. For our first example, let's create a library called PCXLIB.FGI containing three PCX images.

FGILIB PCXLIB +DOG.PCX +CAT.PCX +BIRD.PCX

Now let's remove BIRD.PCX from the FGI library.

FGILIB PCXLIB -BIRD.PCX

Finally, let's replace CAT.PCX with a different version, put BIRD.PCX back in the library, and create a library listing in the file PCXLIB.LIS.

FGILIB PCXLIB -+CAT.PCX +BIRD.PCX /L:PCXLIB.LIS

For our second example, let's create an FGI library called PICTURES.FGI containing one PCX file (CAR.PCX) and two packed pixel run files (TRUCK.PPR and BIKE.PPR), each 320 pixels wide.

FGILIB PICTURES +CAR.PCX +TRUCK.PPR +BIKE.PPR /W:320

Now let's add a standard pixel run file (TRIKE.SPR) to the library. We'll assume this image is 80 pixels wide.

FGILIB PICTURES +TRIKE.SPR /W:80

Suppose we really didn't want CAR.PCX in the library, and we've since deleted CAR.PCX from our hard disk. The following command will extract CAR.PCX to a file before removing it from the FGI library.

FGILIB PICTURES -*CAR.PCX

After all that, we probably want to see what's in the FGI library, so let's create a list file called PICT.LIS.

FGILIB PICTURES /L:PICT.LIS

The example Fastgraph/Image programs presented earlier all use an FGI library called EXAMPLE.FGI containing a PCX file, a BMP file, a 256-color bitmap, a Fastgraph/Fonts font file, a flic file, a JPEG file, and an AVI file. Here is the command used to create that library.

FGILIB EXAMPLE +CLOUDS.PCX +CORAL.BMP +FISH.MAP

+BRODWY18.FGF +GLASS.FLI +AQUARIUM.JPG +CLOCK.AVI /N:7

<< Prev

Next >>

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.