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 / Trouble with dbSetImageColorKey and .png-files

Author
Message
Captain Thomas
15
Years of Service
User Offline
Joined: 21st Feb 2009
Location:
Posted: 21st Feb 2009 21:24
Could anybody tell me if there is any specific reason why .Png-files doesn't work with dbSetImageColourKey?
.bmp and .jpg works fine with it, but not .png and it is kinda annoying.
Oh, and another thing. Does anybody know how to use dbSpriteCollision? Any help will be appreciated

-Heaven doesn't want me there and Hell knows I'll take over.
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 21st Feb 2009 21:59
Png files are usually 32bit(ARGB), so the colour key isn't used I assume. It's only a useful feature when you need to have transparency but don't want to waste RAM on an extra channel, just use a format like dds using an encoding that doesn't include alpha if you really need to use the colour key that badly.

Captain Thomas
15
Years of Service
User Offline
Joined: 21st Feb 2009
Location:
Posted: 21st Feb 2009 22:11
Thanks I had forgotten png files had an alpha feature. I don't need the colour key, it was just the only way I knew so far to make tranparency. I've only just recently started using DarkGDK, but this forum is very usefull.

-Heaven doesn't want me there and Hell knows I'll take over.

Login to post a reply

Server time is: 2024-11-25 15:34:58
Your offset time is: 2024-11-25 15:34:58