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.

Dark GDK / Is dbSetImageTranslucency working or implemented?

Author
Message
Grayvyn
16
Years of Service
User Offline
Joined: 30th Oct 2008
Location: Southern California
Posted: 17th Mar 2009 01:26
I found dbSetImageTranslucency in a .h file and tried it but with no effect. It isn't in the documentation so I was wondering if the command works.

Grayvyn
16
Years of Service
User Offline
Joined: 30th Oct 2008
Location: Southern California
Posted: 18th Mar 2009 01:42
I figured out that it does work but I am looking for something that Alpha blends an image on the screen.
Anyone?

DaddyJ
15
Years of Service
User Offline
Joined: 17th Mar 2009
Location:
Posted: 18th Mar 2009 04:50
Wouldn't

dbSetImageColorkey
This command will set the general colorkey for all images. A colorkey allows you to specify a particular RGB colour that will be treated as transparent by the image when used. Transparent pixels of an image are not drawn. You must use this command before loading or grabbing an image in order that a suitable alpha map be generated from the transparent pixels of the desired image to be calculated. The alpha map is then used to decide which pixels are drawn and which pixels are never rendered.

Syntax
void dbSetImageColorKey ( int iRed, int iGreen, int iBlue )

work?
Grayvyn
16
Years of Service
User Offline
Joined: 30th Oct 2008
Location: Southern California
Posted: 19th Mar 2009 23:30
@DaddyJ - That isn't what I am after. I am aware of Color Keys and how they work by keeping a certain color from dislaying like black or magenta.

What I am looking for is Alphablending where it takes an image and blends the colors with whatever pixels are already on the screen. I believe a 3D example of this is when you turn on ghost for an object and you can see through it but the colors blend with whatever is behind it, like looking through smoke. So, I am looking for a specific 2D way to do that.

Login to post a reply

Server time is: 2024-11-25 18:03:28
Your offset time is: 2024-11-25 18:03:28