|
@@ -81,6 +81,9 @@
|
|
|
context.fillStyle = "#FFC82C"
|
|
|
// 设置右对齐
|
|
|
context.textAlign = 'right'
|
|
|
+ alert(watermark);
|
|
|
+ alert(canvas.width-20);
|
|
|
+ alert(canvas.height-20);
|
|
|
// 在指定位置绘制文字,这里指定距离右下角20坐标的地方
|
|
|
context.fillText(watermark, canvas.width - 20, canvas.height - 20)
|
|
|
let renderContext = {
|