19 package org.sleuthkit.autopsy.corelibs;
21 import java.awt.image.BufferedImage;
22 import java.awt.image.BufferedImageOp;
23 import org.imgscalr.Scalr;
24 import org.imgscalr.Scalr.Method;
32 public static synchronized BufferedImage
resize(BufferedImage input,
int width,
int height) {
33 return Scalr.resize(input, width, height, Scalr.OP_ANTIALIAS);
36 public static synchronized BufferedImage
resize(BufferedImage input,
int size) {
37 return Scalr.resize(input, size, Scalr.OP_ANTIALIAS);
40 public static synchronized BufferedImage
resize(BufferedImage bufferedImage, Method method, Scalr.Mode mode,
int width,
int height, BufferedImageOp ...ops) {
41 return Scalr.resize(bufferedImage, method, mode, width, height, ops);
44 public static synchronized BufferedImage
resizeHighQuality(BufferedImage input,
int width,
int height) {
45 return Scalr.resize(input, Method.QUALITY, width, height, Scalr.OP_ANTIALIAS);
48 public static synchronized BufferedImage
resizeFast(BufferedImage input,
int size) {
49 return Scalr.resize(input, Method.SPEED, Scalr.Mode.AUTOMATIC, size, Scalr.OP_ANTIALIAS);
52 public static synchronized BufferedImage
resizeFast(BufferedImage input,
int width,
int height) {
53 return Scalr.resize(input, Method.SPEED, Scalr.Mode.AUTOMATIC, width, height, Scalr.OP_ANTIALIAS);
56 public static synchronized BufferedImage
cropImage(BufferedImage input,
int width,
int height) {
57 return Scalr.crop(input, width, height, (BufferedImageOp) null);
static synchronized BufferedImage resizeFast(BufferedImage input, int width, int height)
static synchronized BufferedImage resizeFast(BufferedImage input, int size)
static synchronized BufferedImage resize(BufferedImage input, int size)
static synchronized BufferedImage resizeHighQuality(BufferedImage input, int width, int height)
static synchronized BufferedImage resize(BufferedImage input, int width, int height)
static synchronized BufferedImage resize(BufferedImage bufferedImage, Method method, Scalr.Mode mode, int width, int height, BufferedImageOp...ops)
static synchronized BufferedImage cropImage(BufferedImage input, int width, int height)