We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8f83c44 + be170f3 commit e4ffbe8Copy full SHA for e4ffbe8
components/formats-bsd/src/loci/formats/gui/AWTImageTools.java
@@ -1655,7 +1655,7 @@ else if (pixels instanceof int[][]) {
1655
else if (ints[i][j] <= min) out[i][j] = 0;
1656
else {
1657
int diff = max - min;
1658
- float dist = (ints[i][j] - min) / diff;
+ float dist = (float) (ints[i][j] - min) / diff;
1659
out[i][j] = (byte) (dist * 256);
1660
}
1661
0 commit comments