Hello, just trying to figure out how to make an image transparent. I have already searched the code archives but all pertained to 3d stuff.
Transparent image
Blitz3D Forums/Blitz3D Programming/Transparent image If you mean in 3d then you can use the entityalpha command. If you mean in 2d then you can make regions of the image transparent using a mask color. What exactly are you after?
He's probably talking about alpha DrawImage()
You can loop through all pixels the image will draw over, find the middle-value between the pixel that's already there, and the pixel in the image, and draw that. It's painly slow though... Only a 200x200 image results 200*200 = 40 000 loopings with drawing, resulting 1- 15 fps, depends on computer.
You can loop through all pixels the image will draw over, find the middle-value between the pixel that's already there, and the pixel in the image, and draw that. It's painly slow though... Only a 200x200 image results 200*200 = 40 000 loopings with drawing, resulting 1- 15 fps, depends on computer.
You're better off using Sprites in 3D!
---Oops just re-read your post.---
(damn twice i done that today!)
---Oops just re-read your post.---
(damn twice i done that today!)
Check out the user creations forum and check out Snarty's post. He is doing work on a c++ thingy that allows images in 2D to be transparent.
http://www.blitzbasic.com/Community/posts.php?topic=31478
That's it there :)
http://www.blitzbasic.com/Community/posts.php?topic=31478
That's it there :)
ok...thanks guys