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
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 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
Creating smooth corners for BMAPS at runtime #411835
11/20/12 11:15
11/20/12 11:15
Joined: Nov 2011
Posts: 139
India
Yashas Offline OP
Member
Yashas  Offline OP
Member

Joined: Nov 2011
Posts: 139
India
The title say all! laugh
I have a bitmap pitch black.
It has squary corners.
I want to change the bitmap to make it have smooth Corners.


Thanks


Keep smiling laugh
http://translation.babylon.com/ - Translate many languages
Re: Creating smooth corners for BMAPS at runtime [Re: Yashas] #411845
11/20/12 12:22
11/20/12 12:22
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
You can influence bitmaps however you like.

1. Lock the bitmap with http://www.conitec.net/beta/abmap_lock.htm
2. Read pixels from the bmap with http://www.conitec.net/beta/apixel_for_bmap.htm
3. Write pixels to the bitmap with http://www.conitec.net/beta/apixel_for_vec.htm
4. Unlock the bitmap with http://www.conitec.net/beta/abmap_unlock.htm


Always learn from history, to be sure you make the same mistakes again...
Re: Creating smooth corners for BMAPS at runtime [Re: Uhrwerk] #411848
11/20/12 12:41
11/20/12 12:41
Joined: Nov 2011
Posts: 139
India
Yashas Offline OP
Member
Yashas  Offline OP
Member

Joined: Nov 2011
Posts: 139
India
Working on pixels are complicated!!!

Thanks


Keep smiling laugh
http://translation.babylon.com/ - Translate many languages
Re: Creating smooth corners for BMAPS at runtime [Re: Yashas] #411856
11/20/12 14:00
11/20/12 14:00
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
no, it's not, but be careful, images should be uncompressed.

if you have a dot image with fade out, you can apply its values at corners of the rectangle to use as alpha, by using the proper quarter of it for each corner.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Creating smooth corners for BMAPS at runtime [Re: sivan] #411865
11/20/12 14:51
11/20/12 14:51
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Sivans suggestion is a pretty good solution for your case I guess. In this case your best bet is using bmap_blit.

http://www.conitec.net/beta/bmap_blit.htm


Always learn from history, to be sure you make the same mistakes again...

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