Sebastian’s blog

Sebastian’s blog

Sebastian’s blog RSS Feed
 
 
 
 

Archive for Copyright

John Doe & Copyright

I’m obviously no professional when it comes to copyright questions. But talking to many people about current issues, I’ve noticed that by reading lots about it and clicking around in Wikipedia copyright/license discussions, I’ve picked up this and that.
Naturally, I’m always wondering how “normal people” and non-IT people see current copyright. When I was driving [...]

Drawing in Java (2)

The following is now also available on CodingClues.eu.
If you want transparency in your custom components, take a look at the AlphaComposite class and the Graphics2D setComposite(Composite) method. It’s sexy™.

Drawing in Java

The following is now also available on CodingClues.eu.

There are two things I want to say about this shot.
1. Antialiasing
Antialiasing in your custom components can be achieved quite easily. I found this code when I was trying to find out how to rotate a String:
RenderingHints renderHints = new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
renderHints.put(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);
renderHints.put(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);
((Graphics2D)g).setRenderingHints(renderHints);
Quite easy, isn’t it? After [...]

Recent Posts

Categories

Archives

Recent Posts

Twitter

Blogs

Friends

FeedCount

Last.fm weekly artists

Meta

License

Creative Commons License
This work (text, author's own images) is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.