设置水印宽高
This commit is contained in:
parent
3290717984
commit
e098f67b13
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user