Alpha Pixel

BlitzPlus Forums/BlitzPlus Programming/Alpha Pixel

Jay Mattis(Posted 2003) [#1]
How do you draw a pixel with alpha, and how do you control how much alpha it's drawn with?


mearrin69(Posted 2003) [#2]
You can't using native commands - if that's what you meant.

If you want to do this you'll have to write your own commands. Basically, it's like: read pixel from buffer...read pixel and alpha value from sprite...blend colors...write pixel.

Hope that helps at all.
M


Jay Mattis(Posted 2003) [#3]
Oh, alright. Thanks.


BlitzSupport(Posted 2003) [#4]
Jay there's some alpha plotting code in the Code Archives...


mearrin69(Posted 2003) [#5]
Right, sorry, should have mentioned that in my post. I did some of my own functions just to experiment but I believe there is some stuff in blitzcoder.com and blitzbasic.com archives. Never tried any of it out but I'm sure it's good. Can't remember who all did it but maybe BugFaceUK on BC has some in his graphic library.
M