WEBGRAMMING ASSIGNMENT #4

Create a C program which saves a portion of the graphics screen in a file (the logo created in assignment #2). The image should be compressed in the file by run length encoded each horizontal image line.

The program should:

  1. clear the screen
  2. draw the color logo from assignment #2
  3. save the run-length-encoded image to a file
  4. clear the screen
  5. restore the image to the screen from the file
  6. display the file size and percent compression achieved
  7. display your name, social security number and RICS account number on the bottom line of the sceen

The program should be compiled and stored on your RICS account and named pa4.exe.

Click here for a sample fread/fwrite program

Back to the syllabus, click here!


Last updated: Oct 24, 1996 17:45