dextuploadjk.media.ImageOption
Enum Scaling
- Minimum version
- 1.0.0
- Minimum environment
- Java 17, Jakarta EE 9+
- Description
-
Shows how to change the horizontal and vertical dimensions of the original image.
It is used as a parameter in the resize, resizeUniform, resizeUniformToFit, and resizeUniformToFill methods of the ImageTool class when changing the horizontal and vertical dimensions of an image, such as when creating a thumbnail.
Constant Description Stretch Changes the image size to be the same as the size inside (frame) to be changed. Uniform Changes the image size to fit inside the size to be changed (frame). If the original image is smaller than the frame, it will not be resized, so the resized image may be smaller than the size of the given frame. The resized image is not margined. UniformToFit Resize the image to fit inside the size you want to change (the frame). If the original image is smaller than the frame, it is stretched to fit within the frame. The remaining margin of the frame is filled with the background color. UniformToFill Resize the image to fit inside the size you want to change (frame). Fills the frame area completely while maintaining the proportions of the original image.