Build mask based on transparent colour dcImage. Restore settings dcImage. This is a similar article on this subject which uses a slightly different technique often referred to as 'The Black Source Method'. The three blts do cause on-screen flicker, but there are only three of them. For bitmaps as small as icons, transparency is achieved very smoothly.
Some device drivers support transparent blts directly.
The current background colour of the destination is the transparent colour. Only attempt this if device supports functionality. How do you capture DC below current window. Corp. All Rights Reserved.