• Advertisement

Archived

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

How to draw image on DC without transparent color?

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

Hi,I have a problem how to draw image on DC getting rid of the transparent color.(except the mothod of mask)Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
if you don''t want to use masks then SelectClipRgn will work if you have a region defined that only contains the non-transparent pixels. there are plenty of net functions available to make a region from a bitmap with a "transparent" color. just google for BitmapToRegion or BitmapToRgn or something like that.

you can also use TransparentBlt or AlphaBlend on 2K and XP. NT, 2K and XP also have the MaskBlt and PlgBlt functions (but they use masks.)

Share this post


Link to post
Share on other sites

  • Advertisement