Slick Forums

Discuss the Slick 2D Library
It is currently Thu Nov 21, 2019 7:46 am

All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed Jul 06, 2016 10:15 am 

Joined: Mon Jul 04, 2016 8:23 am
Posts: 2
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.

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group