Jump to content

hi

I'm working on another small java project and I was wondering wich renderingHints I should set to which settings in order to achieve the best quality. So far I have these on:

@[member=OverRide]    public void paint(Graphics g)    {        //region setup graphics        super.paint(g);        Graphics2D g2d = (Graphics2D) g;        g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);        g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);        //endregion               //some more irrelevant code       }

Does anyone have any more suggestions? I can't seem to wrap my mind around what the others do.
https://docs.oracle.com/javase/7/docs/api/java/awt/RenderingHints.html#KEY_ANTIALIASING
 

Grammar nazis are people too!
Treat your local grammar nazi nicely and he might teach you a thing or two. (Note that I'm Belgian and not a native English speaker.)
Chivalry isn't dead!

Link to comment
https://linustechtips.com/topic/270798-java-project-renderinghints-question/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×