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 SetAntiAliasMode extends EMFPlusTag { |
17 |
|
18 |
public SetAntiAliasMode() { |
19 |
super(30, 1); |
20 |
} |
21 |
|
22 |
public SetAntiAliasMode(boolean antiAlias) { |
23 |
this(); |
24 |
flags = antiAlias ? 0x01 : 0x00; |
25 |
} |
26 |
|
27 |
public EMFPlusTag read(int tagID, int flags, EMFInputStream emf, int len) |
28 |
throws IOException { |
29 |
SetAntiAliasMode tag = new SetAntiAliasMode(); |
30 |
tag.flags = flags; |
31 |
return tag; |
32 |
} |
33 |
|
34 |
public void write(int tagID, int flags, EMFOutputStream emf) throws IOException { |
35 |
|
36 |
} |
37 |
} |