pixmap png

BlitzMax Forums/BlitzMax Programming/pixmap png

Pineapple(Posted 2012) [#1]
I want a bit of code that would read and write png information directly to a stream. I expected it to be as simple as taking the existing SavePixmapPNG and LoadPixmapPNG functions and just making it use a stream as an argument instead of a file.

But no dice, and I don't understand why. How do I properly go about this?

edit: I feel like an idiot. I did something stupid with variable names, and it works fine.

Last edited 2012


markcw(Posted 2012) [#2]
Not an idiot, just a noob. As the saying goes there is no such thing as a stupid question...

The problem is there are no examples in brl.pixmap to get people started.


Pineapple(Posted 2012) [#3]
nah, my error really was just idiotic. I named the stream argument the same as a global variable I had just finished looking at what it did.