Thread: How to draw one picture in memory and save it by libpng

  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    13

    Question How to draw one picture in memory and save it by libpng

    I have encountered one problem when do my homework. I want to save my flowchart in png format , and I knew some thing of the library of libpng.we can save the png by png_write_image().but don't the the png_info is made up. some one help me , or give me some related source code . that can help me solve this problem.

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    250
    Talk about being lazy: libpng 1.2.5 manual

  3. #3
    Registered User
    Join Date
    Aug 2009
    Posts
    13
    Quote Originally Posted by MWAAAHAAA View Post
    Talk about being lazy: libpng 1.2.5 manual
    To be honest, I think the libpng 1.2.5 manual is difficult for me to understand. AND i am wondering is there any source code to help me to understand it

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Well, the manual makes mention of "example.c"; perhaps you could look at that?
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to write one png image in c++
    By sfguofen in forum C++ Programming
    Replies: 10
    Last Post: 08-27-2009, 01:13 AM
  2. save data held in memory into the file
    By amy1234 in forum C Programming
    Replies: 3
    Last Post: 11-04-2008, 06:36 PM
  3. A bullet-proof fgets wrapper?
    By n7yap in forum C Programming
    Replies: 15
    Last Post: 12-16-2004, 05:19 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  5. Pointer's
    By xlordt in forum C Programming
    Replies: 13
    Last Post: 10-14-2003, 02:15 PM

Tags for this Thread