|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
| Uses of Scalr.Method in org.imgscalr |
|---|
| Methods in org.imgscalr that return Scalr.Method | |
|---|---|
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. |
| Methods in org.imgscalr with parameters of type Scalr.Method | |
|---|---|
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 BufferedImageOps (if any) to the
result before returning it. |
static Future<BufferedImage> |
AsyncScalr.resize(BufferedImage src,
Scalr.Method scalingMethod,
int targetSize,
BufferedImageOp... ops)
|
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 BufferedImageOps (if any) to the result before returning it. |
static Future<BufferedImage> |
AsyncScalr.resize(BufferedImage src,
Scalr.Method scalingMethod,
int targetWidth,
int targetHeight,
BufferedImageOp... ops)
|
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
BufferedImageOps (if any) to the result before returning it. |
static Future<BufferedImage> |
AsyncScalr.resize(BufferedImage src,
Scalr.Method scalingMethod,
Scalr.Mode resizeMode,
int targetSize,
BufferedImageOp... ops)
|
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 BufferedImageOps (if any) to
the result before returning it. |
static Future<BufferedImage> |
AsyncScalr.resize(BufferedImage src,
Scalr.Method scalingMethod,
Scalr.Mode resizeMode,
int targetWidth,
int targetHeight,
BufferedImageOp... ops)
|
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. |
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||