1 |
|
2 |
package org.freehep.graphicsio.emf.gdiplus; |
3 |
|
4 |
import java.io.IOException; |
5 |
|
6 |
import org.freehep.graphicsio.emf.EMFInputStream; |
7 |
import org.freehep.graphicsio.emf.EMFOutputStream; |
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
@author |
14 |
@version |
15 |
|
16 |
public class SetClipPath extends EMFPlusTag { |
17 |
|
18 |
public final static int REPLACE = 0; |
19 |
public final static int INTERSECT = 1; |
20 |
public final static int UNION = 2; |
21 |
public final static int XOR = 3; |
22 |
public final static int EXCLUDE = 4; |
23 |
public final static int COMPLEMENT = 5; |
24 |
|
25 |
|
26 |
public SetClipPath() { |
27 |
super(51, 1); |
28 |
} |
29 |
|
30 |
public SetClipPath(int clipIndex, int mode) { |
31 |
this(); |
32 |
flags = clipIndex | (mode << 8); |
33 |
} |
34 |
|
35 |
public EMFPlusTag read(int tagID, int flags, EMFInputStream emf, int len) |
36 |
throws IOException { |
37 |
SetClipPath tag = new SetClipPath(); |
38 |
tag.flags = flags; |
39 |
return tag; |
40 |
} |
41 |
|
42 |
public void write(int tagID, int flags, EMFOutputStream emf) throws IOException { |
43 |
|
44 |
} |
45 |
|
46 |
} |