public class Scalr extends Scalr
Scalr.Method, Scalr.Mode, Scalr.Rotation
DEBUG, DEBUG_PROPERTY_NAME, LOG_PREFIX, LOG_PREFIX_PROPERTY_NAME, OP_ANTIALIAS, OP_BRIGHTER, OP_DARKER, OP_GRAYSCALE, THRESHOLD_BALANCED_SPEED, THRESHOLD_QUALITY_BALANCED
Modifier and Type | Method and Description |
---|---|
static BufferedImage |
resize(BufferedImage sourceImage,
Scalr.Method scalingMethod,
int targetWidth,
int targetHeight,
float magnificationFactor,
float horizontalWeigth,
float verticalWeight,
BufferedImageOp... ops)
Resizes specified image preserving the proportion and relocates by given
arguments.
|
static BufferedImage |
resizeInbox(BufferedImage sourceImage,
Scalr.Method scalingMethod,
int targetWidth,
int targetHeight,
float horizontalWeigth,
float verticalWeight,
BufferedImageOp... ops) |
static BufferedImage |
resizeInboxCenter(BufferedImage sourceImage,
Scalr.Method scalingMethod,
int targetWidth,
int targetHeight,
BufferedImageOp... ops) |
static BufferedImage |
resizeInboxLowerRight(BufferedImage sourceImage,
Scalr.Method scalingMethod,
int targetWidth,
int targetHeight,
BufferedImageOp... ops) |
static BufferedImage |
resizeInboxUpperLeft(BufferedImage sourceImage,
Scalr.Method scalingMethod,
int targetWidth,
int targetHeight,
BufferedImageOp... ops) |
static BufferedImage |
resizeOutbox(BufferedImage sourceImage,
Scalr.Method scalingMethod,
int targetWidth,
int targetHeight,
float horizontalWeigth,
float verticalWeight,
BufferedImageOp... ops) |
static BufferedImage |
resizeOutboxCenter(BufferedImage sourceImage,
Scalr.Method scalingMethod,
int targetWidth,
int targetHeight,
BufferedImageOp... ops) |
static BufferedImage |
resizeOutboxLowerRight(BufferedImage sourceImage,
Scalr.Method scalingMethod,
int targetWidth,
int targetHeight,
BufferedImageOp... ops) |
static BufferedImage |
resizeOutboxUpperLeft(BufferedImage sourceImage,
Scalr.Method scalingMethod,
int targetWidth,
int targetHeight,
BufferedImageOp... ops) |
apply, copyToOptimalImage, createOptimalImage, createOptimalImage, crop, crop, determineScalingMethod, log, pad, pad, resize, resize, resize, resize, resize, resize, resize, resize, rotate, scaleImage, scaleImageIncrementally
public static BufferedImage resize(BufferedImage sourceImage, Scalr.Method scalingMethod, int targetWidth, int targetHeight, float magnificationFactor, float horizontalWeigth, float verticalWeight, BufferedImageOp... ops)
sourceImage
- the source image to resize.scalingMethod
- the scaling method.targetWidth
- the target width.targetHeight
- the target height.magnificationFactor
- the magnification factor. 1.0f
for
fitting into the box, 1.0f
for fit to max width or height.horizontalWeigth
- the horizontal weight. 1.0f
for aligning
to the left align, 1.0f
for aligning to the right.verticalWeight
- the vertical weight. 1.0f
for aligning to
the top, 1.0f
for aligning to the bottom.ops
- public static BufferedImage resizeInbox(BufferedImage sourceImage, Scalr.Method scalingMethod, int targetWidth, int targetHeight, float horizontalWeigth, float verticalWeight, BufferedImageOp... ops)
sourceImage
- scalingMethod
- targetWidth
- targetHeight
- horizontalWeigth
- verticalWeight
- ops
- resize(java.awt.image.BufferedImage, org.imgscalr.Scalr.Method,
int, int, float, float, float, java.awt.image.BufferedImageOp...)
public static BufferedImage resizeInboxUpperLeft(BufferedImage sourceImage, Scalr.Method scalingMethod, int targetWidth, int targetHeight, BufferedImageOp... ops)
sourceImage
- scalingMethod
- targetWidth
- targetHeight
- ops
- resizeInbox(java.awt.image.BufferedImage,
org.imgscalr.Scalr.Method, int, int, float, float,
java.awt.image.BufferedImageOp...)
public static BufferedImage resizeInboxCenter(BufferedImage sourceImage, Scalr.Method scalingMethod, int targetWidth, int targetHeight, BufferedImageOp... ops)
sourceImage
- scalingMethod
- targetWidth
- targetHeight
- ops
- resizeInbox(java.awt.image.BufferedImage,
org.imgscalr.Scalr.Method, int, int, float, float,
java.awt.image.BufferedImageOp...)
public static BufferedImage resizeInboxLowerRight(BufferedImage sourceImage, Scalr.Method scalingMethod, int targetWidth, int targetHeight, BufferedImageOp... ops)
sourceImage
- scalingMethod
- targetWidth
- targetHeight
- ops
- resizeInbox(java.awt.image.BufferedImage,
org.imgscalr.Scalr.Method, int, int, float, float,
java.awt.image.BufferedImageOp...)
public static BufferedImage resizeOutbox(BufferedImage sourceImage, Scalr.Method scalingMethod, int targetWidth, int targetHeight, float horizontalWeigth, float verticalWeight, BufferedImageOp... ops)
public static BufferedImage resizeOutboxUpperLeft(BufferedImage sourceImage, Scalr.Method scalingMethod, int targetWidth, int targetHeight, BufferedImageOp... ops)
public static BufferedImage resizeOutboxCenter(BufferedImage sourceImage, Scalr.Method scalingMethod, int targetWidth, int targetHeight, BufferedImageOp... ops)
public static BufferedImage resizeOutboxLowerRight(BufferedImage sourceImage, Scalr.Method scalingMethod, int targetWidth, int targetHeight, BufferedImageOp... ops)
Copyright © 2015. All rights reserved.