1   package org.jmage.filter.merge;
2   
3   import java.net.URI;
4   import java.net.URISyntaxException;
5   import java.util.Properties;
6   
7   /***
8    * Test BackgroundImageFilter with transparent PNG
9    */
10  public class BackgroundImagePNGTransparent extends BackgroundImageJPG {
11  
12      public void setProperties() {
13          Properties props = new Properties();
14          props.setProperty("IMAGE_URI", "file:///banner/revised_256.png");
15          request.setFilterChainProperties(props);
16      }
17  
18      public void setImageURI() throws URISyntaxException {
19          request.setImageURI(new URI("file:///banner/50poff_128.png"));
20      }
21  
22      public void setEncodingFormat() {
23          request.setEncodingFormat("png");
24      }
25  }