hi, i’m trying to get rendering hints to work (and it seems they are not difficult to use ;)) but for some unknown reason they are ignored in my game.
i want to rotate an image on the fly and turn the following hint on in order to have smoother results:
g.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);
i compared a working example (http://www.rgagnon.com/javadetails/java-0248.html - the second one - i only added the line above) with my code and i cannot see a difference which seems to be relevant. but i’m most probably wrong.
some questions:
1: are there any components i should not use in connection with rendering hints (jframe, canvas, …)?
2: could BufferStrategy influence this particular part of the rendering process?
3: is Toolkit doing some magic? i use ImageIO …
here a screenshot to show what i mean:
http://www.rastaduck.org/tmp/rendering_hint_problem.jpg
any help is greatly appreciated!