一、概述
在脚本中,它从300x300左右的标记下降到60x60。由于目前效果不佳,因此需要提高整体图像质量。
public static Boolean resizeImage(String sourceImg, String destImg, Integer Width, Integer Height, Integer whiteSpaceAmount)
{
BufferedImage origImage;
try
{
origImage = ad(new File(sourceImg));
int type = Type() == 0? BufferedImage.TYPE_INT_ARGB : Type();
int fHeight = Height;
int fWidth = Width;
int whiteSpace = Height + whiteSpaceAmount; //Formatting all to squares so don't need two whiteSpace calcs..
double aspectRatio;
//Work out the resized dimensions
if (Height() > Width()) //If the pictures height is greater than the width then scale appropriately.
{
fHeight = Height; //Set the height to 60 as it is the big
本文发布于:2024-01-30 19:46:29,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170661519022394.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |