2021
05-25
05-25
golang中实现给gif、png、jpeg图片添加文字水印
添加水印示例添加main文件“watermark/main.go”packagemainimport("fmt""watermark/textwatermark")funcmain(){SavePath:="./kaf"str:=textwatermark.FontInfo{18,"努力向上",textwatermark.TopLeft,20,20,255,255,0,255}arr:=make([]textwatermark.FontInfo,0)arr=append(arr,str)str2:=textwatermark.FontInfo{Size:24,Message:"努力向上,涨工资",Position:textwatermark.TopLeft,Dx:2...
继续阅读 >