User Tools

Site Tools


haas:fall2011:data:projects:imageproc

BMP to RLE

In this project your task is to load BMP image data from a file, manipulate/convert it to RLE/PCX, and store it to another file.

Premise

Ever utilize the “Save As” functionality in a program (especially a program like Paint, Photoshop, GIMP)? Ever wonder how that program was able to convert your data from one format to another? This project will give you some insight into the work that goes into such endeavors.

Requirements

To do this project, you'll need to familiarize yourself with the BMP and RLE/PCX file formats.

Some information on the BMP format can be found here: http://en.wikipedia.org/wiki/BMP_file_format

Information on RLE can be found here: http://en.wikipedia.org/wiki/Run-length_encoding

and also here: http://en.wikipedia.org/wiki/PCX

Much more information can be found here: http://www.google.com/

Also, since image files are typically in binary format (not ASCII), you might want to become familiar with the fread() and fwrite() functions.

Programming Considerations

  • Provide the paths to the source BMP and destination RLE
  • Load the data from the BMP file and store in a dynamic data structure in memory
  • Perform the necessary processing to convert it to the RLE/PCX format (perhaps by storing it in another dynamic data structure in memory)
  • Store the resultant data to the RLE/PCX file
haas/fall2011/data/projects/imageproc.txt · Last modified: 2011/08/21 16:48 by 127.0.0.1