Tuesday, July 14, 2009

How can you make a C++ program to generate and manipulate PNG images?

I have some experience programming but haven't really worked with images before. I have no idea where to start. The program has to run on Unix. This is the assignment:





Develop a program for image manipulation using object-oriented programming in C++.





The program does not need to have a graphical user interface or be able to display images: images should be created using a sequence of calls to the class member functions. The results can ultimately be displayed using widely available image viewers.





The project should implement the following classes





* GeometricObject


o Circle


o Rectangle


o Polygon


* Image





Your image class should have a member function createPngFile which will create a valid PNG format image file corresponding to the image object.





You can start your geometric objects classes using the texts' definitions, but you will need to extend them to handle position among other things.

How can you make a C++ program to generate and manipulate PNG images?
Cool assignment. You might want to look at the ImageMagick libraries, if you're allowed to use them.


No comments:

Post a Comment