public override void WriteSVG(SvgWriter w) { if(_stemDirection == VerticalDir.up) w.SvgUseXY(null, _objectType, _left, _top, _fontHeight); else w.SvgUseXY(null, _objectType, _left, _bottom, _fontHeight); }
/// <summary> /// Writes a clef to the SVG file. /// The Character metrics have been set in SvgSystem.Justify() /// </summary> public override void WriteSVG(SvgWriter w, bool staffIsVisible) { if(this.Metrics != null && staffIsVisible) { ClefMetrics m = Metrics as ClefMetrics; if(m != null) w.SvgUseXY("clef", m.ID_Type, m.OriginX, m.OriginY, m.FontHeight); } }
public override void WriteSVG(SvgWriter w) { if(_stemDirection == VerticalDir.up) w.SvgUseXY("flag" + SvgScore.UniqueID_Number, _objectType, _left, _top, _fontHeight); else w.SvgUseXY("flag" + SvgScore.UniqueID_Number, _objectType, _left, _bottom, _fontHeight); }