n*****n 发帖数: 100 | 1 用java graphic2D输出的图片好像没有办法编辑和保存,现在想把它们放到paper里,
怎么才能转化成pdf文档输入paper?谢谢! | g*****g 发帖数: 34805 | 2 最简单的就是printscreen.
【在 n*****n 的大作中提到】 : 用java graphic2D输出的图片好像没有办法编辑和保存,现在想把它们放到paper里, : 怎么才能转化成pdf文档输入paper?谢谢!
| h******a 发帖数: 46 | 3 www.lowagie.com/iText/ , you can save your Graphics2D to pdf
【在 n*****n 的大作中提到】 : 用java graphic2D输出的图片好像没有办法编辑和保存,现在想把它们放到paper里, : 怎么才能转化成pdf文档输入paper?谢谢!
| n*****n 发帖数: 100 | 4 The problem is that the figure won't be very clear in this way.
【在 g*****g 的大作中提到】 : 最简单的就是printscreen.
| g*****g 发帖数: 34805 | 5 It shouldn't, but if that's your case, since you are drawing
to a BufferedImage, just save the image.
【在 n*****n 的大作中提到】 : The problem is that the figure won't be very clear in this way.
| j******o 发帖数: 82 | 6 Yes...just do the following
BufferedImage im = new BufferedImage(...); // desired width, height, type
Graphics2D g2 = im.createGraphics();
drawStuff(g2);
ImageIO.write(im, ....); // to PNG, JPEG, etc.
【在 g*****g 的大作中提到】 : It shouldn't, but if that's your case, since you are drawing : to a BufferedImage, just save the image.
|
|