public void resizeByWidthHeight(int width, int height) {
   preResize();
   setImage(ImageProcessor.resize(getImage(), width, height));
 }
 public void resizeByScale(int scale) {
   preResize();
   setImage(ImageProcessor.resize(getImage(), scale * 0.01));
 }