devpia.dextuploadnj.media.ImageOption
Enum Scaling
- Minimum version supported
- 1.0.0
- Minimum support environment
- JRE 1.6
- Description
-
Defines methods of changing the size of the original image in the vertical and horizontal directions.
When changing the vertical/horizontal size of an image like the work of creating a thumbnail, This is used for parameters in resize, resizeUniform, resizeUniformToFit, and resizeUniformToFill method of the ImageTool class.
Enum constant Description Stretch Changes the size of the image same to the frame size. Uniform Change the size of the image according to the frame size. When the size of the original image is smaller than the frame, the size has not been changed, so the result can be smaller than the given frame size. The result image of the processing does not have margin. UniformToFit Change the size of the image according to the frame size. When the size of the original image is smaller than the frame, it increases according to the frame size. The remaining margin of the frame is filled with the background color. UniformToFill Change the size of the image according to the frame size. The frame area is completely filled while maintaining the ratio of the original image.