walhalla.image
Scalr.Mode
Used to define the different modes of resizing that the algorithm can use.
AUTOMATIC
Mode
Used to indicate that the scaling implementation should calculate dimensions for the resultant image by looking at the image's orientation and generating proportional dimensions that best fit into the target width and height given
See "Image Proportions" in the Scalr
class description for
more detail.
FIT_EXACT
Mode
Used to fit the image to the exact dimensions given regardless of the image's proportions. If the dimensions are not proportionally correct, this will introduce vertical or horizontal stretching to the image.
It is recommended that you use one of the otherFIT_TO
modes or Mode#AUTOMATIC
if you want the image to look
correct, but if dimension-fitting is the #1 priority regardless of
how it makes the image look, that is what this mode is for.
BEST_FIT_BOTH
Mode
Used to indicate that the scaling implementation should calculate dimensions for the largest image that fit within the bounding box, without cropping or distortion, retaining the original proportions.
FIT_TO_WIDTH
Mode
Used to indicate that the scaling implementation should calculate dimensions for the resultant image that best-fit within the given width, regardless of the orientation of the image.
FIT_TO_HEIGHT
Mode
Used to indicate that the scaling implementation should calculate dimensions for the resultant image that best-fit within the given height, regardless of the orientation of the image.
values
()
Mode
Mode |
valueOf
(String
name
)
Mode
String
name
)String name |
|
Mode |