transform-swf
transform-swf copied to clipboard
A Java library for reading and writing Flash files. Fully supports Flash 10.
DefineFont glyph shapes aren't decoded automatically. Instead, `Shape.shapeFromData(ShapeData)` must be used on the only ShapeData record in the glyph shape to get the glyph path. However this method throws a...
When font size is quite big, advance may be negative number (this should not happen)
Reading large strings from SWF yields ArrayIndexOutOfBoundException Solution: Line 540 (applicable to version 3.0.2), change ``` dest += length; ``` with ``` dest += count; ```
If you Use ImageFactory.read(file), it will open a stream and won't close it, so here I add a new Method that you can pass your stream to read file and...
Method com.flagstone.transform.util.image.BufferedImageDecoder#zip(byte[]) uses java.util.zip.Deflater to compress data - but the Deflater is not ended properly (missing call to Deflater#end()) causing allocated native memory not to be released. Code to reproduce:...
Using SWF Transform 3.02 I have at least two SWF files (crawled from the web) which causes a hang in the library whilst parsing. ``` at com.flagstone.transform.coder.SWFDecoder.fill(SWFDecoder.java:150) at com.flagstone.transform.coder.SWFDecoder.readBytes(SWFDecoder.java:461) at...