1

Can anyone tell me if it is possible to copy certain colors from one dc to another ? What i have is a bitmap that contains a drawing and I want to copy everything except the white background color using the BitBlt. Thx

Tomas
  • 595
  • 1
  • 5
  • 14

1 Answers1

2

This is where you need TransparentBlt function. It is similar to StretchBlt, which in turn offers a superior functionality to BitBlt.

The function takes additional argument:

crTransparent [in]

The RGB color in the source bitmap to treat as transparent.

Roman R.
  • 68,205
  • 6
  • 94
  • 158