Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Odoacer

color depth for transparency?

This topic is 5320 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I can''t seem to save a bitmap in 16 bits and make it transparent - I have to use a 24-bit depth. Problem is, I''m running my window in 16-bit mode. Now, this works fine on my machine, but I''m trying to keep quirks/hacks/etc out of the way. I suspect this might be the reason some of my friends can''t seem to run my programs. What''s the reason for my saving in 16bits not working?

Share this post


Link to post
Share on other sites
Advertisement
DO you mean you have a transparency colour, or you''re trying to draw the whole image with an aloha blending?



Why do Suicide Bombers think they''re going to a better place?
Don''t they know their going all over the place?

Share this post


Link to post
Share on other sites
No, I have a transparency color (78, 255, 0) but it doesn''t work unless I save the image as a 24-bit bitmap. That''s my main problem - I can''t save it as a 16-bit bitmap and still have transparency work.

Since my program is running in 16-bits, I imagine this may also cause some incompatibilities among some systems. (It works fine on mine, but crashes on some friends''.)

Share this post


Link to post
Share on other sites
Did you look at the actual RGB-value of the key color in your 16BPP image (it may be different from the one in the 24BPP version).

Share this post


Link to post
Share on other sites
Yes, about a hundred times. It''s the same picture, just saved in a different color depth. I''ve also tried saving it in different 16-bit formats: X1R5G5B5, (x for alpha I think), R5G6B5, and so on. Doing it as R5G6B5 causes the program to crash, with the 1-bit alpha channel it runs fine but transparency is broken, with 24-bits, all is good but potentially incompatible.

Any ideas?

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!