Post subject: Save picture to BMP,JPG,GIF,PNG,(TIF)
I want to save a picture in VB6 from a picturebox to JPG,GIF and PNG.
I now use PicFormat32 control to save a BMP to JPG or GIF.
This works fine , only for large pictures it sometimes gives a failing error when trying to save to JPG.
(I contacted the author but no reply so far, also a memory leack could be on that version) So if anyone has a late version of PicFormat32
(I also tried VIC32 but my version had a evaluation time limit, i tried GDI but i don't have all classes or my data is not complete
and the code is vere extensive.)
If i for now could get some code or control te convert a bmp to a PNG this would help me a lot. Also convertion code to other types like TIF,.... is welcome
Many thanks
Tue Sep 28, 04 3:57 am
Belal User
Joined: 08 Mar 2004 Posts: 84
Location: Dhaka, Bangladesh
Post subject:
Hi lvermeersch,
Your problem is an interesting one. Right now I am busy with some project work. Within few days I will try to give you my opinion on it. And also let you know helpful info that I will learn working on your query.
Hope you be there.
Thanks
Belal _________________ we've lot of things to think abt curr probs
so, i don't have time to think abt religion or wonder of sceice .......... how ppl can waste their time like this?
Tue Sep 28, 04 6:36 am
Belal User
Joined: 08 Mar 2004 Posts: 84
Location: Dhaka, Bangladesh
Post subject:
Hi lvermeersch,
Check out following address and download modJPEG.bas file, it should be helpful for you.
[http://www.thevbzone.com/s_modules.htm]
I didn't check it as I told you I am little bit busy now. You check it and let me know. There is another .bas file for PNG file too. So check that too.
Thanks
belal _________________ we've lot of things to think abt curr probs
so, i don't have time to think abt religion or wonder of sceice .......... how ppl can waste their time like this?
Thx for the link
Ik know about IJL11.Dll i used it some time ago.
I did abonnden it then, don't know the reason but i thought there was a license on that code, not sure. But i tested it again now and couldn't yet get t to work. I 've gorgotten how to get de cDibsection from my picturebox to call the SaveJGP function. I wil try later.
I am very interested in the PNG code and gonna try this next and let u know.
I also found a JPG convert PicFormat32 control from Edward Grubb. This works great but only on big pictures , i get een error object failed :-(
About th PNG convert code modPNG.bas on thevbzone.
I downloaded the module and the 2 dll's.
I could'nt get mutch ferther than that i'm afraid :-(
How do i go about settng up some code to save the picture or where can i find a VB6 code example?