mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-03 03:25:28 -04:00
Fixed image progress to work as specified.
This commit is contained in:
parent
5d3fb34e49
commit
73fc08f8c1
@ -110,10 +110,6 @@ public class IFFImageWriter extends ImageWriterBase {
|
|||||||
imageOutput.writeByte(0); // PAD
|
imageOutput.writeByte(0); // PAD
|
||||||
}
|
}
|
||||||
|
|
||||||
// NOTE: Most progress is done in packImageData, however, as we need to
|
|
||||||
// buffer, to write correct size, we defer the last 10 percent until now.
|
|
||||||
processImageProgress(100f);
|
|
||||||
|
|
||||||
imageOutput.flush();
|
imageOutput.flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -167,7 +163,7 @@ public class IFFImageWriter extends ImageWriterBase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
processImageProgress(y * 90f / height);
|
processImageProgress(y * 100f / height);
|
||||||
}
|
}
|
||||||
|
|
||||||
output.flush();
|
output.flush();
|
||||||
@ -220,6 +216,7 @@ public class IFFImageWriter extends ImageWriterBase {
|
|||||||
|
|
||||||
anno.writeChunk(imageOutput);
|
anno.writeChunk(imageOutput);
|
||||||
header.writeChunk(imageOutput);
|
header.writeChunk(imageOutput);
|
||||||
|
|
||||||
if (cmap != null) {
|
if (cmap != null) {
|
||||||
//System.out.println("CMAP written");
|
//System.out.println("CMAP written");
|
||||||
cmap.writeChunk(imageOutput);
|
cmap.writeChunk(imageOutput);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user