Jump to content
  • Advertisement

Archived

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

Zole

Highlighting non-transparent pixels on DDraw7 surface

This topic is 5674 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''m programming a game using DirectDraw 7 and I would like to highlight characters by turning their non-color keyed pixels white (or some other color). Is there a way to do this without essentially writing my own blt function?

Share this post


Link to post
Share on other sites
Advertisement
No.

You have to lock and stare at each pixel. This can be a pain because surface formats might differ on different gfx cards but I''ve done it and it can be mighty fast.

(Actually in theory you could select every other color as the colorkey color and repeatedly blit a combined image onto a white surface).

Mark

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
can''t you just use a WHITENESS rop along with a colorkey override for the Blt call?

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!