Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 16874

Win32 - How to merge a pattern brush with a bitmap?

$
0
0

I want to use brushes for a drawing effect, but I must be doing something wrong or missing some important part. I've created some custom brush patterns which need to be "merged" with a bitmap, so when I blit it to the screen, the pattern is not a seperate overlay but an actual part of the bitmap so if there is any other image underneath, it will be visible . I don't know if I'm making sense, so below is a visual example :P

I've tried some approaches using raster ops but the result always affects the …


Viewing all articles
Browse latest Browse all 16874

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>