PNG Encode

Just starting out? Need help? Post your questions and find answers here.
Effigy
User
User
Posts: 35
Joined: Fri Apr 25, 2003 5:40 pm
Location: Canada
Contact:

PNG Encode

Post 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.
Derek Gavey
- PB Newbie -
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

I've sent you a PM with some better options you could take into account.
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Named pipe?
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Having this as an option for all save commands would be good, kinda like the opposite of catch.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
Effigy
User
User
Posts: 35
Joined: Fri Apr 25, 2003 5:40 pm
Location: Canada
Contact:

Post 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
Derek Gavey
- PB Newbie -
Effigy
User
User
Posts: 35
Joined: Fri Apr 25, 2003 5:40 pm
Location: Canada
Contact:

Post 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.
Derek Gavey
- PB Newbie -
Post Reply