ImageData 中有一个方法scaledTo(width,height)可以实现缩放,怎么样设置width、height使image按比例缩小,从而能通过报表输出在word中正常显示,并且缩小后的效果比较清晰?(image超出了word页面大小就不能显示了。我给width、height设了两个常量,图片是出来了,但效果很模糊)请高手指点。如果有其他方法也行。
调试欢乐多
ImageData data2 = data.scaledTo(data.width/2, data.height/2);
Image image = new Image(display,data2);不知道能不能解决你的问题