Jump to content
  • Advertisement

Archived

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

jimywang

bitmap transpareny problem,help.

This topic is 5370 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

here is my problem.im writing my program in the colour depth of 16bit per pixel.because i havent got a painter program to make 16bit picture,all my bitmaps are 24 bit and have to be converted manually into 16 bit.when i apply transparecy on those bitmap,only black can be filtered,since black is (0,0,0)in rgb.for example,if i want to get rid of white which is (255,255,255),i cant.can some one give me some advice please?thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
btw,the rgb convert in my program is like this

#define _RGB16BIT555(r,g,b) ((b & 31) + ((g & 31) << 5) + ((r & 31) << 10))
#define _RGB16BIT565(r,g,b) ((b & 31) + ((g & 63) << 5) + ((r & 31) << 11))

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!