C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 07-06-2009, 07:04 AM   #1
Registered User
 
Join Date: Feb 2009
Location: India, Gujarat
Posts: 22
how to create chart

hi All,
I want to create .gif file of char from some stat, so i don't know how to make .gif file from C program and how to plot the graph. any one give me simple example of creating chart from C program.
vipul_vgp is offline   Reply With Quote
Old 07-06-2009, 10:18 AM   #2
and the hat of Jobseeking
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,407
Why GIF (archaic format)?
Why not PNG (more tools, more libraries - libpng Home Page)

You create a 'screen' consisting of a 2D array of pixels (aka bytes).
You 'draw' into the 'screen' whatever you want.
You then encode the result using say PNG to create a PNG file you can display in a browser, viewer etc.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.

Salem is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot create shared memory Phoenix_Rebirth C Programming 3 11-07-2008 11:32 AM
Create new combo boxes based on items selected in preview combo box RealityFusion Windows Programming 2 01-10-2007 09:50 AM
Can't create child windows OnionKnight Windows Programming 2 11-30-2006 08:11 PM
Create a file from c++ program Dan17 C++ Programming 2 05-08-2006 04:25 PM
How to Create reference to an array in C++ shiv_tech_quest C++ Programming 2 12-20-2002 10:01 AM


All times are GMT -6. The time now is 10:58 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22