ImageEditor

Thumbs

To balance my previous post somewhat, besides creating an editor for images, I’m also creating an imagebar with thumbnails. The image bar can be used to drag imagefiles into and to select the image that you want to edit. I have to say that, using ImageIO, it’s really easy to implement this. All you have to do is extend from JComponent and implement the paint() method to have the image drawn. Because of the way Java2D works, there is no need to figure out the coordinates of the image, it’s always relative to the component so you just use (0,0). With some fancy rendering of higlighting when mouse overed and a delete icon that pops when hovering it’s starting to look really nice:

screenie.JPG

ImageEditor
Java

Comments (0)

Permalink

Java2D is teh suck!

I’ve been trying to write a simple applet for rescaling and rotating images prior to uploading them to wordpress, but the way in which Java2D works with images really really REALLY! sucks. There is just no way to easilly get what you want. Right now I’m seriously contemplating just creating all the logic from scratch….

ImageEditor
Java

Comments (2)

Permalink