Page 1 of 1
PNG Encode
Posted: Thu Mar 02, 2006 5:36 am
by Effigy
Is it possiple to use saveimage() to encode a png to a memory address instead of saving it to a disk.
I have looked at using the libpng.dll but I'm sad to say it's a little complicated for me to figure it out right now.
Ultimately what I want to do is have my Image convert to a png and send it over a network without having to save the file to a disk first.
I look forward to your replies.
Posted: Thu Mar 02, 2006 7:40 am
by dagcrack
I've sent you a PM with some better options you could take into account.
Posted: Thu Mar 02, 2006 10:09 am
by Trond
Named pipe?
Posted: Thu Mar 02, 2006 11:28 am
by DoubleDutch
Having this as an option for all save commands would be good, kinda like the opposite of catch.
Posted: Thu Mar 02, 2006 10:08 pm
by Effigy
I was taking a look at the PBOSL Breiflz Client, Server example as it is doing basically what I want to do, but a lot of the comments and debug notes are in German and I can't get a screenshot to come across properly.
Does anyone else have problem with that example or can fix it for me? PB 3.94 is the version I'm using.
Thanks
Posted: Fri Mar 03, 2006 12:13 am
by Effigy
Update !!!
I've figured out the problem with the BriefLZ example. Both the client and the server need to be at the same screen resolution. Maybe someone should have mentioned that in the example code.
Anyway this should help someone in the future.
If anyone has had some experience using the libpng.dll I would appreciate some example code.
Thanks to dagcrack for all his off fourm help.