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

This is a discussion on How to draw one picture in memory and save it by libpng within the C++ Programming forums, part of the General Programming Boards category; I have encountered one problem when do my homework. I want to save my flowchart in png format , and ...

  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,046
    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, 05:36 PM
  3. A bullet-proof fgets wrapper?
    By n7yap in forum C Programming
    Replies: 15
    Last Post: 12-16-2004, 04:19 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09: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


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