|
Drawing flags with 2D arrays in C!
could anyone possibly show me how to draw flags in C using a 2D arrays that refer to a ppm file and convert the end image to a gif file.
christ im having trouble like... anyone got any idea?
I have also attached the blue.ppm file
Here's more info on it!
1: Write a program to generate a ppm file representing a blue square on a red background.
blue.ppm blue.ppm as txt shows an example .
Convert this to a gif file, using (on Unix)
convert pic2.ppm pic2.gif
Write a web page to display the picture in its gif encoding.
<img src="pic2.gif" alt="">
2: Write a program to draw a web page of the flags of the 27 countries of the European union.
The size of the flags should be variable, and set by an input parameter to the program at run time.
Where the flag has a complex symbol on it, you should draw the flag without the symbol. e.g. Spain, Slovenia.
Flags should be drawn with a height to width ratio of 2 : 3
3: Add a double size flag of the EU, centred at the top of the web page. The size of the stars should scale properly.
|