You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Call the getPoint2D or getBounds2D of the ResampleOp
What is the expected output? What do you see instead?
The expected output is the new size of the image and the new location of the
point
What I see is the size of the source image and the location of the source point
What version of the product are you using? On what operating system?
0.8.5
Here is the fix for AdvancedResizeOp.java
public final Rectangle2D getBounds2D(BufferedImage src) {
Dimension dstDimension = dimensionConstrain.getDimension(new Dimension(src.getWidth(),src.getHeight()));
return new Rectangle(0, 0, dstDimension.width, dstDimension.height);
}
public final Point2D getPoint2D(Point2D srcPt, Point2D dstPt) {
if (dstPt != null) {
return dstPt;
} else {
Dimension dstDimension = dimensionConstrain.getDimension(new Dimension(srcPt.x, srcPt.y));
return new Point2D.Double(dstDimension.width, dstDimension.height);
}
}
Original issue reported on code.google.com by [email protected] on 29 Nov 2012 at 5:27
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 29 Nov 2012 at 5:27The text was updated successfully, but these errors were encountered: