Pixmap and Image

BlitzMax Forums/BlitzMax Beginners Area/Pixmap and Image

Smurftra(Posted 2006) [#1]
Hello,

Here's what i'm trying to achieve:

I have an image that i need to access its pixel information. I understand i have to go through a pixmap for that. Now, the Timage i will never need, only the pixmap. Must i load a TImage and then use LockImage to get my TPixMap or is there a way to only have a TPixMap? (the image is a png on disk)


fredborg(Posted 2006) [#2]
pix:TPixmap = LoadPixmap("myimage.png")

If you need the image later on, you can do this:
img:TImage = LoadImage(pix)



Smurftra(Posted 2006) [#3]
Thanks alot