Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MR414N-ID
GitHub Repository: MR414N-ID/botku2
Path: blob/master/node_modules/@jimp/plugin-crop/index.d.ts
1126 views
1
import { Jimp, ImageCallback } from '@jimp/core';
2
3
interface CropClass {
4
crop(x: number, y: number, w: number, h: number, cb?: ImageCallback<this>): this;
5
cropQuiet(
6
x: number,
7
y: number,
8
w: number,
9
h: number,
10
cb?: ImageCallback<this>
11
): this;
12
autocrop(tolerance?: number, cb?: ImageCallback<this>): this;
13
autocrop(cropOnlyFrames?: boolean, cb?: ImageCallback<this>): this;
14
autocrop(
15
tolerance?: number,
16
cropOnlyFrames?: boolean,
17
cb?: ImageCallback<this>
18
): this;
19
autocrop(
20
options: {
21
tolerance?: number;
22
cropOnlyFrames?: boolean;
23
cropSymmetric?: boolean;
24
leaveBorder?: number;
25
ignoreSides?: {
26
north: boolean;
27
south: boolean;
28
east: boolean;
29
west: boolean;
30
}
31
},
32
cb?: ImageCallback<this>
33
): this;
34
}
35
36
interface Crop {
37
class: CropClass
38
}
39
40
export default function(): Crop;
41
42