Package | Description |
---|---|
com.openindex.openestate.tool.utils | |
org.imgscalr |
Modifier and Type | Method and Description |
---|---|
static BufferedImage |
ImageUtils.scale(BufferedImage image,
int width,
int height,
Scalr.Method method,
Scalr.Mode mode) |
Modifier and Type | Method and Description |
---|---|
protected static Scalr.Method |
Scalr.determineScalingMethod(int targetWidth,
int targetHeight,
float ratio)
Used to determine the scaling
Scalr.Method that is best suited for
scaling the image to the targeted dimensions. |
static Scalr.Method |
Scalr.Method.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Scalr.Method[] |
Scalr.Method.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static BufferedImage |
Scalr.resize(BufferedImage src,
Scalr.Method scalingMethod,
int targetSize,
BufferedImageOp... ops)
Resize a given image (maintaining its original proportion) to a width and
height no bigger than
targetSize using the given scaling
method and apply the given BufferedImageOp s (if any) to the
result before returning it. |
static BufferedImage |
Scalr.resize(BufferedImage src,
Scalr.Method scalingMethod,
int targetWidth,
int targetHeight,
BufferedImageOp... ops)
Resize a given image (maintaining its original proportion) to the target
width and height using the given scaling method and apply the given
BufferedImageOp s (if any) to the result before returning it. |
static BufferedImage |
Scalr.resize(BufferedImage src,
Scalr.Method scalingMethod,
Scalr.Mode resizeMode,
int targetSize,
BufferedImageOp... ops)
Resize a given image (maintaining its original proportion) to a width and
height no bigger than
targetSize (or fitting the image to
the given WIDTH or HEIGHT explicitly, depending on the Scalr.Mode
specified) using the given scaling method and apply the given
BufferedImageOp s (if any) to the result before returning it. |
static BufferedImage |
Scalr.resize(BufferedImage src,
Scalr.Method scalingMethod,
Scalr.Mode resizeMode,
int targetWidth,
int targetHeight,
BufferedImageOp... ops)
Resize a given image (maintaining its original proportion) to the target
width and height (or fitting the image to the given WIDTH or HEIGHT
explicitly, depending on the
Scalr.Mode specified) using the given
scaling method and apply the given BufferedImageOp s (if any) to
the result before returning it. |
protected static BufferedImage |
Scalr.scaleImageIncrementally(BufferedImage src,
int targetWidth,
int targetHeight,
Scalr.Method scalingMethod,
Object interpolationHintValue)
Used to implement Chris Campbell's incremental-scaling algorithm: http://today.java.net/pub/a/today/2007/04/03/perils
-of-image-getscaledinstance.html.
|
Copyright © 2017 OpenEstate. All rights reserved.