Assignment 2: Reading, Displaying and Writing Images
The aim of this assignment is to produce a small program to read in a TGA
image file, display it on the screen, and write it out again (with a new
name). The small program you produce will form the basis for the first
For this assignment you must produce a program that:
To help you with this task, we provide a library for manipulating TGA files
(called LibTarga). FLTK provides functions for drawing images and choosing
files. The best way to do this assignment is to work through the
- Reads in a TGA (targa) file. The name can be given on the command
line, prompted for in the console window, or (recommended) prompted for
with an FLTK file chooser dialog.
- Display the TGA image in a window.
- Write the TGA image to a new file name, given by the user through some
The source for libtarga is available here, should
you wish to download it for home. You will need to build at least the
debug multithreaded configuration (which may not be the default). Note
also that the pathnames to get to the include files and libraries will
be different than those used at school.
Back to CS559 Home Page