Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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