Rendering performance improvement : use EncodedImage constructor with

BufferedImage parameter to avoid re-rerendering BufferedImage.
pull/26/head
luc 9 years ago
parent bc6c79fc12
commit 5eafce5577

@ -289,7 +289,7 @@ public class ViewImage {
* An error can still occur when transcoding from buffered image to
* target ext : in that case return null
*/
encodedImage = new EncodedImage((Image)image, ext, isStatic);
encodedImage = new EncodedImage(image, ext, isStatic);
if (encodedImage.getImage().length() == 0) {
throw new IOException("Image could not be encoded to format : " + ext);
}

Loading…
Cancel
Save