Hi,
When I want to get the width and height for an image, it often returns -1 even when the image is already loaded.
I fixed this by looping the getWidth and getHeight until they return something >-1, does anyone know if there’s a better solution for this?
public void imageBlah(Image im)
{
while (im.getWidth(null) < 1 && im.getHeight(null) < 1) { }
int width = orig.getWidth(null);
int height = orig.getHeight(null);
.....
}