Functions
Const convertURLtoFile
- convertURLtoFile(url: string): Promise<File>
-
Parameters
Returns Promise<File>
Const getImageUrlOfOp
- getImageUrlOfOp(op: Op): string
-
Parameters
Returns string
Const getLoadedImage
- getLoadedImage(image: HTMLImageElement): Promise<Blob>
-
Parameters
Returns Promise<Blob>
Const img2Blob
- img2Blob(img: HTMLImageElement, __namedParameters: Object): Promise<Blob>
-
Parameters
-
img: HTMLImageElement
-
__namedParameters: Object
Returns Promise<Blob>
Const isDataURL
- isDataURL(s: string): boolean
-
Parameters
Returns boolean
Const isImageOp
- isImageOp(op: Op): boolean
-
Parameters
Returns boolean
Const url2Img
- url2Img(url: string): Promise<HTMLImageElement>
-
Parameters
Returns Promise<HTMLImageElement>
使用 Canvas 将图片 url 转为带 水印的 Blob