Results 1 to 10 of 10

Thread: Load PNG files?

  1. #1

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    How can i load PNG files? Any controls or API out there?

    Basically I need to convert PNG to JPG.. any help appreciated!

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    There are many different resources. I suggest going with a control that will output an hDC or an stdPicture so you can use all of the normal functions with it.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  3. #3

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    That's what I supposed but where can i find such a control?

  4. #4
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987
    You can check out the format of a PNG file on www.wotsit.org and see if you can manipulate the file yourself if you cannot find a control.
    {Insert random techno-babble here}

    {Insert quote from some long gone mofo here}

  5. #5

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    OK I found a DOS program which converts PNG to BMP so I can make JPG out of it... Looks bad but works

    Anyways, if someone knows a control or code snippet to load PNG files please let me know...

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Take a look at libpng...it's available as a DLL so it can be used from VB.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  7. #7
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    hey fox, i know of a place you can find lots of png libraries... http://sourceforge.net its an open source development place,,

    here is a link to what i found:
    https://sourceforge.net/project/show...lease_id=22495

    then from there unzip and compile the dll's your self... oh and you have to download both the libpng and zlib to get the dll's...or if you have ms visual studio 6, then you can ask me for them and ill send them over to ya... as far as documentation goes, im looking into that and ill update you on what functions to use and how to call them etc,..
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

  8. #8
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    here is the official site:
    http://www.libpng.org/pub/png
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

  9. #9
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    here are some other sources but im afraid that these are commercial ones...

    http://www.vbxtras.com/Search.asp?SearchWords=png
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

  10. #10

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Ok, thanks, will have a look

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width