设置水印宽高

This commit is contained in:
zjl 2024-10-11 21:31:31 +08:00
parent 3290717984
commit e098f67b13

View File

@ -4,8 +4,8 @@ const setWatermark = (str: string) => {
if (document.getElementById(id) !== null)
document.body.removeChild(<HTMLElement>document.getElementById(id));
const can = document.createElement('canvas');
can.width = 200;
can.height = 130;
can.width = 250;
can.height = 180;
const cans = <CanvasRenderingContext2D>can.getContext('2d');
cans.rotate((-20 * Math.PI) / 180);
cans.font = '18px Vedana';