I have a sprite sheet which has each image centered in a 32×32 cell. The actual images are not 32×32, but slightly smaller. What I’d like to do is take a cell and crop the transparent pixels so the image is as small as it can be. How would I do that in Java (JDK 6)? Here is an example
Tag: image
How to change the cursor type
This question is related to the previous post. How to save file and read alt text http://freeimagehosting.net/image.php?dc73c3bb33.jpg How can I change the cursor to “Hand” only when the mouse pointed on grid which is not Null (contained images)? So far the cursor turn to “Hand” all over the grids (null or not null). Answer This should have the desired effect:
What is the best way to scale images in Java?
I have a web application written in Java (Spring, Hibernate/JPA, Struts2) where users can upload images and store them in the file system. I would like to scale those images so that they are of a consistent size for display on the site. What libraries or built in functions will offer the best results? I will consider the following criteria