Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProgressListener.notifyProgress(float fraction) gets values up to about 191 for fraction, but it should max be 1.0 #8

Closed
GoogleCodeExporter opened this issue Sep 16, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Just implement a ProgressListener and print out the values of fraction

What is the expected output? What do you see instead?
Expected Output: 0.0 to 1.0, I see values up to about 191.

What version of the product are you using? On what operating system?
Version 0.8.1 (jar), resizing Images of about 4000x2500

Please provide any additional information below.
Code:
BufferedImage img = ImageIO.read(file);
ResampleOp resizeOp = new
ResampleOp(DimensionConstrain.createMaxDimension(300, 300, true));
if (pl != null) resizeOp.addProgressListener(pl);
BufferedImage thumb = resizeOp.filter(img, null);

And in the ProgressListener implementation:
public void notifyProgress(float progress) {
      System.out.println("Progress: " + progress);
}

Original issue reported on code.google.com by luzipher...@yahoo.ie on 11 Sep 2009 at 3:25

@GoogleCodeExporter
Copy link
Author

Original comment by m%nobel-...@gtempaccount.com on 11 Sep 2009 at 6:14

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Fixed and committed. Fix will be available in 0.8.2

Original comment by m%nobel-...@gtempaccount.com on 12 Sep 2009 at 8:30

  • Changed state: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant