use red color when bitmap is not available for bitmapfill (probably some fallback in flash player for erroneous bitmap fills)

This commit is contained in:
honfika@gmail.com
2016-12-14 19:43:06 +01:00
parent a44221b363
commit b8f88aea79
5 changed files with 22 additions and 1 deletions

View File

@@ -870,6 +870,11 @@ public final class SWF implements SWFContainerItem, Timelined {
compress(new ByteArrayInputStream(uncompressedData), os, compression, lzmaProperties);
}
public void saveTo(OutputStream os, boolean gfx) throws IOException {
byte[] uncompressedData = saveToByteArray(gfx);
compress(new ByteArrayInputStream(uncompressedData), os, compression, lzmaProperties);
}
public byte[] getHeaderBytes() {
return getHeaderBytes(compression, gfx);
}
@@ -903,6 +908,10 @@ public final class SWF implements SWFContainerItem, Timelined {
}
private byte[] saveToByteArray() throws IOException {
return saveToByteArray(gfx);
}
private byte[] saveToByteArray(boolean gfx) throws IOException {
fixCharactersOrder(false);
byte[] data;