Skip to content
Browse files

fixed coordinate clipping calc

  • Loading branch information...
1 parent 28218fc commit 960495396f2aea5b374fb7ac3debc15a9d3792a6 @michelegonella committed Nov 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 zen-base/src/main/java/com/nominanuda/jai/ImageAwtTransformer.java
View
2 zen-base/src/main/java/com/nominanuda/jai/ImageAwtTransformer.java
@@ -132,7 +132,7 @@ public long transform(BufferedImage src, OutputStream os,
return new int[] { 0 + margin, 0, sw - margin, sh, dw, sh };
} else if (dw > sw) {
int margin = approx((double) (sh - dh) / 2);
- return new int[] { 0 + margin, 0, sw, dh - margin, sw, dh };
+ return new int[] { 0, 0 + margin, sw, sh - margin, sw, dh };
} else {
double xRatio = (double) sw / (double) dw;
double yRatio = (double) sh / (double) dh;

0 comments on commit 9604953

Please sign in to comment.
Something went wrong with that request. Please try again.