forked from seikichi/tiff.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tiff.d.ts
40 lines (40 loc) · 1.1 KB
/
tiff.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
declare var loadModule: (options: Tiff.InitializeOptions) => typeof Module;
declare class Tiff {
private _filename;
private _tiffPtr;
private static uniqueIdForFileName;
private static Module;
static initialize(options: Tiff.InitializeOptions): void;
constructor(params: Tiff.Params);
width(): number;
height(): number;
currentDirectory(): number;
countDirectory(): number;
setDirectory(index: number): void;
getField(tag: number): number;
readRGBAImage(): ArrayBuffer;
toCanvas(): HTMLCanvasElement;
toDataURL(): string;
close(): void;
private static createUniqueFileName();
private static createFileSystemObjectFromBuffer(buffer);
}
declare module Tiff {
interface InitializeOptions {
TOTAL_MEMORY?: number;
}
interface Params {
buffer: ArrayBuffer;
}
class Exception {
message: string;
name: string;
constructor(message: string);
}
var Tag: typeof TiffTag;
}
declare var process: any;
declare var require: any;
declare var module: any;
declare var define: any;
declare var self: any;