how to create chart

This is a discussion on how to create chart within the Linux Programming forums, part of the Platform Specific Boards category; hi All, I want to create .gif file of char from some stat, so i don't know how to make ...

  1. #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.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,505
    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.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

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

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