Slick Forums

Discuss the Slick 2D Library
It is currently Thu Dec 13, 2018 1:11 am

All times are UTC




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

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...
Code:
image.setFilter(Image.FILTER_NEAREST);
g = image.getGraphics();
g.setAntiAlias(true);
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:
Image

This is the result: (Too blotchy)
Image

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.


Top
 Profile  
 
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 3 guests


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:  
cron
Powered by phpBB® Forum Software © phpBB Group