Map map = new Map(workspace);
map.open("测试");
map.setViewBounds(rectangle2D);
String outimageFile = tempPath + File.separator + "image.png";
Dimension dimension = new Dimension();
int height = (int) (paraForm.getImgWidth() * (rectangle2D.getHeight() / rectangle2D.getWidth()));
dimension.setSize(paraForm.getImgWidth(), height);
map.setImageSize(dimension);
map.outputMapToPNG(outimageFile, false);
使用outpuMapToPNG可以通过setImageSize设置导出图片的尺寸。但是无法设置分辨率。默认dpi96无法满足需求,应该怎么办?