Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (Martin_HH, steyr, alibaba), 509 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 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 | chip programmers | 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