1   package org.jmage.filter.merge;
2   
3   import org.jmage.mapper.JunitMapper;
4   
5   import java.net.URI;
6   import java.net.URISyntaxException;
7   import java.util.Properties;
8   
9   /***
10   * Test Textoverlay with JPG
11   */
12  public class TextOverlayJPG extends JunitMapper {
13  
14      public void setFilterChainURI() throws URISyntaxException {
15          request.setFilterChainURI(new URI("chain:org.jmage.filter.merge.TextOverlayFilter"));
16      }
17  
18      public void setProperties() {
19          Properties props = new Properties();
20          props.setProperty("FONT_URI", "file:///maxhandwriting.ttf");
21          props.setProperty("TEXT", "june vase");
22          props.setProperty("POSITION", "7");
23          props.setProperty("COLOR", "0000dd");
24          props.setProperty("FONT_SIZE", "44");
25          props.setProperty("FONT_STYLE", "ITALIC");
26          props.setProperty("ANTIALIASING", "TRUE");
27          props.setProperty("BORDEROFFSET", "20");
28          props.setProperty("ORIENTATION", "355");
29          props.setProperty("OPACITY", "90");
30          request.setFilterChainProperties(props);
31      }
32  }