Scaling an Image in GWT
I saw this blog entry, which solves the problem by using a GWT DataResource instead of ImageResource. It turns out that the same technique will actually work with ImageResource, if you use it as follows: Image image = new Image(myImageResource.getURL()); image.setPixelSize(getLength(), getHeight()); To keep aspect ratio calculate it like: Image image = new Image(myImageResource.getURL()); image.setPixelSize(newWidth, … Read more