public override void defineShape6(DefineShape tag) { defineShape(tag); }
public override void defineShape(DefineShape tag) { int id = dict.add(tag); tagw.writeUI16(id); encodeRect(tag.bounds, tagw); if (tag.code == flash.swf.TagValues_Fields.stagDefineShape6) { encodeRect(tag.edgeBounds, tagw); tagw.writeUBits(0, 6); tagw.writeBit(tag.usesNonScalingStrokes); tagw.writeBit(tag.usesScalingStrokes); } encodeShapeWithStyle(tag.shapeWithStyle, tagw, tag.code); encodeTag(tag); }
public override void defineShape2(DefineShape tag) { printDefineShape(tag, false); }
public override void defineShape6(DefineShape tag) { printDefineShape(tag, true); }
private void printDefineShape(DefineShape tag, bool alpha) { open(tag); out_Renamed.Write(" id='" + id(tag) + "'"); out_Renamed.Write(" bounds='" + tag.bounds + "'"); if (tag.code == flash.swf.TagValues_Fields.stagDefineShape6) { out_Renamed.Write(" edgebounds='" + tag.edgeBounds + "'"); out_Renamed.Write(" usesNonScalingStrokes='" + tag.usesNonScalingStrokes + "'"); out_Renamed.Write(" usesScalingStrokes='" + tag.usesScalingStrokes + "'"); } end(); printShapeWithStyles(tag.shapeWithStyle, alpha); close(tag); }