locked
DrawText with clear type enabled RRS feed

  • Question

  • Hi,

    I am trying to draw a text on a bitmap and then display it on screen. The process I am following are as following:

    1. Get screen DC
    2. Create compatibleDC
    3. Create compatiblebitmap w.r.t ScreenDC
    4. Fill the compatible bitmap with magenta (255,0,255) color
    5. Select it into compatible DC
    6. DrawText using black color in compatible DC
    7. Do a transblt to screen DC and using RGB as (255,0,255) as the transparency color.

    The output has magenta color on the edges of the text. But the problem does not come if clear type is disabled. Any idea on how to resolve this issue.

    Thank you,
    CED
    Tuesday, February 9, 2010 7:02 AM