Slick Forums

Scaling image down causing artifacts
Page 1 of 1

Author:  joonasvali [ Wed Jul 06, 2016 10:15 am ]
Post subject:  Scaling image down causing artifacts

I'm trying to do something rater simple, scale image down to specified size and draw it to screen. However it appears very blotched and isn't drawn nicely...
g = image.getGraphics();
g.drawOval(actor.getX(), actor.getY(), 100, 100);
// Scaling down to correct size and drawing
image.draw(simulationX, simulationY, simulationWidth, simulationHeight);

This is painted in original size:

This is the result: (Too blotchy)

What might be wrong, I've tried to google the problem, but everyone suggests image.setFilter(Image.FILTER_NEAREST); does the trick while it's not working for me.
Increasing line width won't help, there's still no trace of antialias and the line looks sharp with pixels standing out.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group