Transparency to text in GDI

后端 未结 5 1647
梦毁少年i
梦毁少年i 2020-12-16 03:45

i have created a Bitmap using GDI+.I am drawing text on to that bitmap using GDI Drawtext.Using Drawtext i am unable to apply tranparency. Any help or code

5条回答
  •  醉酒成梦
    2020-12-16 04:11

    While this question is about making text semi-transparent, I had the opposite problem.

    DrawText was making the text in my layered window (UpdateLayeredWindow) semi-transparent ... and I didn't want it to be.

    Take a look at this other question ... since in the other question I post some code that you could easily modify ... and is almost exactly what Chris Becke suggests in his answer.

提交回复
热议问题