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 / get the black color back into a sprite?

Author
Message
Wikaman1
15
Years of Service
User Offline
Joined: 17th Aug 2008
Location: Scotland
Posted: 7th Jul 2010 03:29
when I load a sprite with a black background the black part gets ignored and only the color parts in it are shown. Any idea how to display the full image?

Thanks
Cuddle Bunniezzz 12
15
Years of Service
User Offline
Joined: 14th Jan 2009
Location: Buffalo, NY
Posted: 7th Jul 2010 03:51
use "dbSetImageColorKey()".

Ex:


The best solution though would be to use a .png with transparency.

You can install Paint.NET:
http://www.getpaint.net/

Which can create transparency.

http://ref.darkgdk.us/ <- Online DarkGDK Refernece. More content coming soon.
Wikaman1
15
Years of Service
User Offline
Joined: 17th Aug 2008
Location: Scotland
Posted: 7th Jul 2010 04:02
thanks that got it working

Login to post a reply

Server time is: 2024-07-04 09:25:42
Your offset time is: 2024-07-04 09:25:42