Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / transpaarency

Author
Message
ClearCoder
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 5th May 2003 21:16
what programs surpport transparency is i need to make one picture go on another but not is a square i just want the picture so i got told before that you don't need a particular command in db you just need a to do the picture in a program that supports transparency do any of you know any. wait a sec Rich what program did you do the pictures in, for "the lab" those had transparency

seeya
dudeman
Newbie Now; Expert Later
Current project:The Sorus (A trading RPG game)
http://www.freewebs.com/dudemansoftware/picture/dmsw.jpg[/img]
Furiousuk
22
Years of Service
User Offline
Joined: 10th Jan 2003
Location: United Kingdom
Posted: 5th May 2003 22:41
You can just use the 'Paste Image' command and set the transparency flag - all black pixels (RGB 0,0,0) will be transparent.
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 5th May 2003 23:30
Basically, you need to CREATE BITMAPs, PASTE IMAGEs (with RGB(0,0,0) for the transparent areas), and make SPRITEs or whatever from the result.

You can even add text dynamically this way, by writing it to the bitmap, it becomes part of the created image.

Thanks in advance.
All the Best,
StevieVee
OpticRealm
22
Years of Service
User Offline
Joined: 25th Apr 2003
Location:
Posted: 5th May 2003 23:37
Is there a way to make a different color the transparency color? I want to use pure black ON my sprites and bobs and still have parts transparent.

I've come up with a ghetto work-a-round, but i don't like it. I make the parts that i want to be transparent, pure black, then I make the parts I want to be black, one shade lighter (rgb(1,1,1) or something). It works but no me gusta.

Oh, and what is the difference in a sprite and a bob. The help files descriptions are EXACTLY the same.
freak
22
Years of Service
User Offline
Joined: 20th Jan 2003
Location:
Posted: 6th May 2003 00:32
bob and sprite ARE the same (bob was the old name for it but when they introduced sprite they kept bob because of compatibility reasons)

you can program it yourself, which color is transparent
by using the dot and point command
ClearCoder
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 6th May 2003 17:20
so i can't use black as the transparancy colour because i nedd bits in the picture black can i change the RGB to like 500,500,500 or something.
thx
dudeman

Newbie Now; Expert Later
Current project:The Sorus
arras
22
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Slovakia
Posted: 6th May 2003 19:15
in fact everything more than rgb(10,10,10) will be shown. Color having walue rgb(11,11,11) looks totaly black at the screen, you will not notice diference.

Login to post a reply

Server time is: 2025-05-17 19:30:00
Your offset time is: 2025-05-17 19:30:00