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-processing
“java.lang.OutOfMemoryError: Java heap space” in image and array storage
I am currently working on an image processing demonstration in java (Applet). I am running into the problem where my arrays are too large and I am getting the “java.lang.OutOfMemoryError: Java heap space” error. The algorithm I run creates an NxD float array where: N is the number of pixel in the image and D is the coordinates of each