#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    29
    Rep Power
    0

    Best Way to Create JPEG Bar and Pie Graphs?


    In my application, I need to output a few bar and pie graphs as JPEG files. Does anyone know of a free library that does this? If not, any suggestions on the best way to do this (especially: how to output a JPEG file)?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    88
    Rep Power
    12
    I too would be interested in libraries for outputing Jpeg's and Gif's. Let me know if you find any, ryjahrman, I'll let you know if I find any. :)
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    29
    Rep Power
    0
    Now that I think about it, I don't think either will work. JPEG would make the edges of the bars look blurry, and GIF is protected by patents. Actually, I'm thinking about doing it as a Java applet . . . I would probably make my own since I haven't been happy with the freeware graph applets I've seen.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    88
    Rep Power
    12
    Hi,

    I suggest PNG format, I know the GD libraries in PHP make really nice images for PNG, not sure about C. I'm sure you could find one.

    Regards,
    Someonewhois
  8. #5
  9. No Profile Picture
    Offensive Member
    Devshed Novice (500 - 999 posts)

    Join Date
    Oct 2002
    Location
    in the perfect world
    Posts
    622
    Rep Power
    27
    GDI++ (from MS in VC) has support for jpg and gif (inc other types).
    Search MSDN for 'Using Image Encoders and Decoders'.

    also try Smaller Animals Software for their excellent library for image manupulation called ImageSource (support for comercial apps is 100%). Cost is around US$50.

    >>JPEG would make the edges of the bars look blurry

    Depends on the image resolution and file resolution (and drawing method ie is stretched or not).
    The essence of Christianity is told us in the Garden of Eden history. The fruit that was forbidden was on the Tree of Knowledge. The subtext is, All the suffering you have is because you wanted to find out what was going on. You could be in the Garden of Eden if you had just kept your f***ing mouth shut and hadn't asked any questions.

    Frank Zappa
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    29
    Rep Power
    0
    For those reading this in the future, that's actually GDI+ and not GDI++.

IMN logo majestic logo threadwatch logo seochat tools logo