E
e_matthes
Hello. I have a program which generates an image from mathematical
data, simply plotting points. When I save the images (drawings) as
png's using ImageIO.write, the saved images are not as clean as what I
see in the program. That is, when the program displays its output, the
dots representing the points are clean circles. When I open the saved
png files in photoshop, the dots are more jagged. I believe the
relevant bits of code are:
RenderedImage rendImage;
....
File pngFile = new File(fileName);
ImageIO.write(rendImage, "png", pngFile);
....
BufferedImage bImage = new BufferedImage(bIWidth, bIHeight,
BufferedImage.TYPE_INT_ARGB);
....
Graphics2D g2d = bImage.createGraphics();
....
plotter.drawPlot(g2d, xImageOffset, yImageOffset, "print");
Any thoughts on how to get a png file which more accurately captures
the clean screen images?
- Eric
data, simply plotting points. When I save the images (drawings) as
png's using ImageIO.write, the saved images are not as clean as what I
see in the program. That is, when the program displays its output, the
dots representing the points are clean circles. When I open the saved
png files in photoshop, the dots are more jagged. I believe the
relevant bits of code are:
RenderedImage rendImage;
....
File pngFile = new File(fileName);
ImageIO.write(rendImage, "png", pngFile);
....
BufferedImage bImage = new BufferedImage(bIWidth, bIHeight,
BufferedImage.TYPE_INT_ARGB);
....
Graphics2D g2d = bImage.createGraphics();
....
plotter.drawPlot(g2d, xImageOffset, yImageOffset, "print");
Any thoughts on how to get a png file which more accurately captures
the clean screen images?
- Eric