blob: 5b64583f8321c5b007d96cf582de5e4f81b364aa (
plain)
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
41
42
|
package com.artifex.mupdf.fitz;
public class DisplayList
{
static {
Context.init();
}
private long pointer;
protected native void finalize();
public void destroy() {
finalize();
pointer = 0;
}
private native long newNative(Rect mediabox);
public DisplayList(Rect mediabox) {
pointer = newNative(mediabox);
}
private DisplayList(long p) {
pointer = p;
}
public native Pixmap toPixmap(Matrix ctm, ColorSpace colorspace, boolean alpha);
public native StructuredText toStructuredText(String options);
public StructuredText toStructuredText() {
return toStructuredText(null);
}
public native Rect[] search(String needle);
public native void run(Device dev, Matrix ctm, Rect scissor, Cookie cookie);
public void run(Device dev, Matrix ctm, Cookie cookie) {
run(dev, ctm, null, cookie);
}
}
|