PDA

Click to See Complete Forum and Search --> : PNG Conversion in VB *** RESOLVED ***


MoMad
Aug 15th, 2002, 05:08 PM
Hello Everyone,

Does anybody know where I can find information on how to convert a bitmap to a png format? I have found the free libpng and the accompanying zlib and got them compiled for vb use, but I have no idea how to use them!

Does anybody know of any tutorials on how to use the free png libraries available at sourceforge.net? And how do you save a bitmap to png?

Well I want to convert my bitmap into a png. I downloaded the popular libpng and its partner zlib. Then I compiled them with the __stdcall convention.

Now my only problem is, how the hell do i use these functions?? I am seriously lost on how to take a simple bitmap and save it as a PNG format.

Please help if you know what to do about this.

Thank you for your prompt response.

Thanks,
MoMad

PS: Anything regarding PNG will help...

Sastraxi
Aug 17th, 2002, 01:13 AM
Go down to a local bookstore, and get O'Reilly's PNG programming. A great purchase; I can get it for $10 canadian where I am. Look for it in a bargain bin somewhere, I'll bet you can get it cheaper :cool:

MoMad
Aug 17th, 2002, 03:57 AM
Waaaaaaaaahhhhhhhhhhhhh!!!

Thanks Sas, but i found a sollution already...

Im too cheap to go buy a book, besides, i just want a simple conversion function. Easy does it. Anyways, I found a sollution, its this huuuuuuugeeee image processing library in c++ and its all free!!!

It can convert from/to:


BMP
PNG
TGA
JPEG
TIFF
GIF
And more!!!


Anywas the library can be downloaded here:
http://www.codeproject.com/bitmap/cximage.asp

its called CxImage! And im gonna make a little COM wrapper for it to allow VB programers to take advantage of it... maybe they already wrote such a thing for it? hmmm...