Go to the documentation of this file.
19package org.sleuthkit.autopsy.corelibs;
21import java.awt.image.BufferedImage;
22import java.awt.image.BufferedImageOp;
23import org.imgscalr.Scalr;
24import 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 resize(BufferedImage input, int width, int height)
static synchronized BufferedImage resize(BufferedImage input, int size)
static synchronized BufferedImage resizeFast(BufferedImage input, int size)
static synchronized BufferedImage cropImage(BufferedImage input, int width, int height)
static synchronized BufferedImage resizeFast(BufferedImage input, int width, int height)
static synchronized BufferedImage resizeHighQuality(BufferedImage input, int width, int height)
static synchronized BufferedImage resize(BufferedImage bufferedImage, Method method, Scalr.Mode mode, int width, int height, BufferedImageOp ...ops)
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.