I need help w/ drawing on images - well...drawing

BlitzMax Forums/BlitzMax Beginners Area/I need help w/ drawing on images - well...drawing

mongoose643(Posted 2005) [#1]
Hello,

I need some help - I worked with BB for a while but I only had the demo because I'm not really a game programmer - I program mostly for web database applications.

When I looked into BlitzMax I thought - "hey, this will be great!!!" but I'm having problems figuring out how to display any type of image on screen.

It doesn't seem to write on buffers like before and I can't find out how it does write to the screen except with DrawImage.

What if I want to draw on the image first, then display the altered image?

You don't even have to write your own response if you can point me to a website or page or article that would explain this.


tonyg(Posted 2005) [#2]
BlitzMax uses a single backbuffer. When you drawimage you draw to this backbuffer and flip to display.
There are no imagebuffers in BlitzMax.
To draw an altered image you either have to...
1)
a) cls
b) Drawimage image1
c) Drawimage image2
d) Grabpixmap or grabimage into image3
or
2)
a) Convert image1 into a pixmap.
b) Lock the pixmap
c) Use Writepixel to change the image
d) Unlock the pixmap


mongoose643(Posted 2005) [#3]
Thanks tonyg. I had kinda thought it might not have it but I was still hoping it might be in there somewhere. Much time will be saved thanks to you though.