Пример #1
0
 public void resizeFix(File srcFile, File destFile, int boxWidth, int boxHeight) throws Exception {
   if (isMagick) {
     MagickImageScale.resizeFix(srcFile, destFile, boxWidth, boxHeight);
   } else {
     AverageImageScale.resizeFix(srcFile, destFile, boxWidth, boxHeight);
   }
 }
Пример #2
0
 public void imageMark(
     File srcFile,
     File destFile,
     int minWidth,
     int minHeight,
     int pos,
     int offsetX,
     int offsetY,
     File markFile)
     throws Exception {
   if (isMagick) {
     MagickImageScale.imageMark(
         srcFile, destFile, minWidth, minHeight, pos, offsetX, offsetY, markFile);
   } else {
     AverageImageScale.imageMark(
         srcFile, destFile, minWidth, minHeight, pos, offsetX, offsetY, markFile);
   }
 }
Пример #3
0
 public void imageMark(
     File srcFile,
     File destFile,
     int minWidth,
     int minHeight,
     int pos,
     int offsetX,
     int offsetY,
     String text,
     Color color,
     int size,
     int alpha)
     throws Exception {
   if (isMagick) {
     MagickImageScale.imageMark(
         srcFile, destFile, minWidth, minHeight, pos, offsetX, offsetY, text, color, size, alpha);
   } else {
     AverageImageScale.imageMark(
         srcFile, destFile, minWidth, minHeight, pos, offsetX, offsetY, text, color, size, alpha);
   }
 }