Coverage Report - org.webslinger.ext.image.ResizingTransformerFactory
 
Classes in this File Line Coverage Branch Coverage Complexity
ResizingTransformerFactory
0%
0/5
N/A
1
 
 1  
 package org.webslinger.ext.image;
 2  
 
 3  
 import java.awt.Rectangle;
 4  
 import java.io.File;
 5  
 import java.io.IOException;
 6  
 
 7  
 public class ResizingTransformerFactory extends AbstractConstantSizingTransformerFactory {
 8  
     public ResizingTransformerFactory(Rectangle size) {
 9  0
         super(size);
 10  0
     }
 11  
 
 12  
     public ResizingTransformerFactory(int width, int height) {
 13  0
         super(width, height);
 14  0
     }
 15  
 
 16  
     protected Rectangle transform(ImageDescriptor image, File file, int width, int height) throws InterruptedException, IOException {
 17  0
         return ImageUtils.resizeImage(file, width, height);
 18  
     }
 19  
 }