这个问题我已经解决了,源代码里有这样一个方法
scalePercent(float percent)
//介绍 Scale the image to a certain percentage.
scalePercent(float percentX, float percentY)
//介绍 Scale the width and height of an image to a certain percentage.
这两个方法都没有返回值
用这两个方法可以实现图片的放大和缩小,例如:
Image png= Image.getInstance(imgName);
png.scalePercent(68.8f);
可以将图片的整体(长和宽)缩小至原来的68.8%