Examples of destroyImages()


Examples of magick.MagickImage.destroyImages()

    // 缩小
    MagickImage scaled = image.scaleImage(zoomWidth, zoomHeight);
    // 输出
    scaled.setFileName(destFile.getAbsolutePath());
    scaled.writeImage(info);
    scaled.destroyImages();
  }

  /**
   * 裁剪并缩小
   *
 
View Full Code Here

Examples of magick.MagickImage.destroyImages()

    // 缩小
    MagickImage scaled = cropped.scaleImage(zoomWidth, zoomHeight);
    // 输出
    scaled.setFileName(destFile.getAbsolutePath());
    scaled.writeImage(info);
    scaled.destroyImages();
  }

  public static void imageMark(File srcFile, File destFile, int minWidth,
      int minHeight, int pos, int offsetX, int offsetY,
      String markContent, Color markColor, int markSize, int alpha)
View Full Code Here

Examples of magick.MagickImage.destroyImages()

    Dimension dim = image.getDimension();
    int width = (int) dim.getWidth();
    int height = (int) dim.getHeight();
    if (width < minWidth || height < minHeight) {
      image.destroyImages();
      if (!srcFile.equals(destFile)) {
        FileUtils.copyFile(srcFile, destFile);
      }
    } else {
      imageMark(image, info, width, height, pos, offsetX, offsetY,
View Full Code Here

Examples of magick.MagickImage.destroyImages()

    } else {
      imageMark(image, info, width, height, pos, offsetX, offsetY,
          markContent, markColor, markSize, alpha);
      image.setFileName(destFile.getAbsolutePath());
      image.writeImage(info);
      image.destroyImages();
    }
  }

  public static void imageMark(File srcFile, File destFile, int minWidth,
      int minHeight, int pos, int offsetX, int offsetY, File markFile)
View Full Code Here

Examples of magick.MagickImage.destroyImages()

    Dimension dim = image.getDimension();
    int width = (int) dim.getWidth();
    int height = (int) dim.getHeight();
    if (width < minWidth || height < minHeight) {
      image.destroyImages();
      if (!srcFile.equals(destFile)) {
        FileUtils.copyFile(srcFile, destFile);
      }
    } else {
      imageMark(image, info, width, height, pos, offsetX, offsetY,
View Full Code Here

Examples of magick.MagickImage.destroyImages()

    } else {
      imageMark(image, info, width, height, pos, offsetX, offsetY,
          markFile);
      image.setFileName(destFile.getAbsolutePath());
      image.writeImage(info);
      image.destroyImages();
    }
  }

  private static void imageMark(MagickImage image, ImageInfo info, int width,
      int height, int pos, int offsetX, int offsetY, String text,
View Full Code Here

Examples of magick.MagickImage.destroyImages()

        offsetY);
    MagickImage mark = new MagickImage(new ImageInfo(markFile
        .getAbsolutePath()));
    image.compositeImage(CompositeOperator.AtopCompositeOp, mark, p.getX(),
        p.getY());
    mark.destroyImages();
  }

  public static void main(String[] args) throws Exception {
    long time = System.currentTimeMillis();
    MagickImageScale.resizeFix(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.