Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 10-30-2007, 05:04 AM   #1 (permalink)
Johnathan
Recruit
 
Join Date: Oct 2007
Posts: 1
Johnathan is on a distinguished road
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.
Johnathan is offline   Reply With Quote
Old 10-30-2007, 05:26 AM   #2 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 681
DJMaze is on a distinguished road
Lindley didn't suite the answer that you were expecting?
CodeGuru Forums - Drawing flags with 2D arrays in C!
__________________

UT: Ultra-kill... God like!
DJMaze is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Methods for initialising 2D arrays almulsi Standard C, C++ 7 04-01-2007 01:59 PM
Structures and Arrays in C JaySun Standard C, C++ 4 04-19-2005 01:04 AM
C & Gtk: drawing areas Stween Standard C, C++ 5 07-06-2003 06:52 AM
edit? anon Lounge 10 11-21-2002 03:02 PM


All times are GMT -8. The time now is 06:18 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting