Writing Transparent Text on Image

前端 未结 7 1029
名媛妹妹
名媛妹妹 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');
    

提交回复
热议问题