Writing Transparent Text on Image

前端 未结 7 975
名媛妹妹
名媛妹妹 2020-12-16 05:54

How can I write a semi transparent text on an Image (Jpg,Bmp), or a transparent text (color as same background Image) but with a shadow, something I want to do to watermark

相关标签:
7条回答
  • 2020-12-16 06:21

    i haven't tested it but it'll give you some idea where to go. the key is the brush style.

    something like this:

    img.Canvas.Brush.Style:=bsClear;
    img.Canvas.Font.Color:=clBlack;
    img.Canvas.TextOut(0, 0, 'hi there');
    
    0 讨论(0)
提交回复
热议问题