how to work as fast as posible wiht pixels?

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

art <><(Posted 2005) [#1]
how to work as fast as posible with pixels to make a transition betwen two images?

(from Spain)...


Ryan Moody(Posted 2005) [#2]
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


Yan(Posted 2005) [#3]
Err...BMAX!


Will(Posted 2005) [#4]
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.


art <><(Posted 2005) [#5]
thanks...


art <><(Posted 2005) [#6]
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.


xlsior(Posted 2005) [#7]
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.


EOF(Posted 2005) [#8]
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?


Will(Posted 2005) [#9]
that URL just takes me to mysite.com, a sizable web hoster?


xlsior(Posted 2005) [#10]
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.