-
Notifications
You must be signed in to change notification settings - Fork 47
/
index.d.ts
21 lines (17 loc) · 914 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import Jimp from "jimp/*";
declare class DigitalWatermarking {
static transformImageWithText(
srcFileName:string,watermarkText:string,
fontSize:number,enCodeFileName:string
):Promise<Jimp>;
static transformImageBufferWithText(srcBuffer:Buffer,watermarkText:string,fontSize:number):Promise<Jimp>;
static getTextFormImage(enCodeFileName:string,deCodeFileName:string):Promise<Jimp>;
static getTextFormImageBuffer(enCodeBuffer:Buffer):Promise<Jimp>;
}
export function transformImageWithText(
srcFileName:string,watermarkText:string,
fontSize:number,enCodeFileName:string
):Promise<Jimp>;
export function transformImageBufferWithText(srcBuffer:Buffer,watermarkText:string,fontSize:number):Promise<Jimp>;
export function getTextFormImage(enCodeFileName:string,deCodeFileName:string):Promise<Jimp>;
export function getTextFormImageBuffer(enCodeBuffer:Buffer):Promise<Jimp>;