better transparent gif support

This commit is contained in:
2015-04-25 14:33:46 +02:00
parent 91fd844cc6
commit 7ec5305783
6 changed files with 87 additions and 51 deletions
@@ -444,7 +444,6 @@ public class FrameExporter {
AnimatedGifEncoder encoder = new AnimatedGifEncoder();
encoder.setRepeat(0); // repeat forever
encoder.setTransparent(new Color(0, 0, 0, 0));
encoder.start(file.getAbsolutePath());
encoder.setDelay(1000 / frameRate);
while (images.hasNext()) {