how to work as fast as posible wiht pixels?

BlitzMax Forums/BlitzMax Beginners Area/how to work as fast as posible wiht pixels?

how to work as fast as posible with pixels to make a transition betwen two images?

(from Spain)...

How you do the actual transition I'ld need to think about, but you'll be wanting to use the ReadPixelFast / WritePixelFast / LockBuffer / UnlockBuffer commands.

Ryan

Err...BMAX!

Draw one over hte other with an alpha that is increasing, and draw the other with a decreasing alpha - if I am understanding what you mean.

thanks...

finally, i obtains the effect that I was looking for using lightblen and alphablend .
is a tile based game, made in blitzplus first, with a transition between the edges and the corners.

how can i put an image in this mensage to to show you the effect.?

Thanks for help me.

how to work as fast as posible with pixels to make a transition betwen two images?


Not sure exactly what you're looking for, but I did create a cross-fading routine for blitzmax which can be found in the code Archives:

http://blitzbasic.com/codearcs/codearcs.php?code=1281

It will do a smooth fade from one image to another, as well as fade to black, and fade to white.

somewhat related, I also created this one:
http://blitzbasic.com/codearcs/codearcs.php?code=1282
Which fades a full color image into greyscale.

how can i put an image in this mensage to to show you the effect?

Just type the URL which links directly to the uploaded image. Example:

http:// www. mysite.com/myimage.jpg

(without the spaces)

See also What are the forum codes?

that URL just takes me to mysite.com, a sizable web hoster?

Jb meant that in order to show an image online, you will have to upload it to your own webspace provider, and simply enter the location in your message -- the forum will auutomatically detect it as an image link, and show the image at the address provided.