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 Imageoverlay with JPG 11 */ 12 public class ImageOverlayJPG extends JunitMapper { 13 14 public void setFilterChainURI() throws URISyntaxException { 15 request.setFilterChainURI(new URI("chain:org.jmage.filter.merge.ImageOverlayFilter")); 16 } 17 18 public void setProperties() { 19 Properties props = new Properties(); 20 props.setProperty("IMAGE_URI", "file:///sample/june_vase_small.jpg"); 21 props.setProperty("OPACITY", "50"); 22 props.setProperty("ORIENTATION", "180"); 23 props.setProperty("POSITION", "7"); 24 props.setProperty("BORDEROFFSET", "10"); 25 request.setFilterChainProperties(props); 26 } 27 }