BMAP

Posted By: frescosteve

BMAP - 08/08/07 03:28

Hey guys/girls,

I was wondering if there was an efficient way of coding a bmap manipulation technique.

What I am trying to achieve is; take a black and white bmap (a square with a white circle), record each pixel position which is white and set its alpha value to 0 (so you end up with a transparent circle). Then you take a larger Bmap and use the values given from the smaller bmap (circle) to effectivly create a transparent circle on the large bmap.

I hope this is understandable.

Thanks in advance.
Posted By: frescosteve

Re: BMAP - 08/08/07 05:29

Never mind I figured out the code. I created a loop to loop through every pixel on a bmap then checked to see if that pixel was white, if it was then i set the pixel to transparent (0 alpha) then set the position on the other bmap. Works very fast I expected it to lag a little but its actually pretty good.

Thanks anyway.
© 2023 lite-C Forums