as3potrace is a library to trace bitmaps. It is used to convert bitmaps to vector shapes in runtime. The lib is an AS3 port of Vectorization, a C# port of potrace 1.8 by Wolfgang Nagl, which ported the original C library potrace by Peter Selinger.
var gd:Vector. = new Vector.(); gd.push(new GraphicsStroke(1, false, LineScaleMode.NONE, CapsStyle.ROUND, JointStyle.ROUND, 3, new GraphicsSolidFill(0x00ff00, 1))); var potrace:POTrace = new POTrace(); potrace.backend = new GraphicsDataBackend(gd); potrace.potrace_trace(bitmap.bitmapData); graphics.drawGraphicsData(gd);