Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,484 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
BMAP #146573
08/08/07 03:28
08/08/07 03:28
Joined: Mar 2004
Posts: 281
England
frescosteve Offline OP
Member
frescosteve  Offline OP
Member

Joined: Mar 2004
Posts: 281
England
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.

Re: BMAP [Re: frescosteve] #146574
08/08/07 05:29
08/08/07 05:29
Joined: Mar 2004
Posts: 281
England
frescosteve Offline OP
Member
frescosteve  Offline OP
Member

Joined: Mar 2004
Posts: 281
England
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.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1