ReadString reads an XML-formatted SVG file from the given string.
(s string)
| 98 | |
| 99 | // ReadString reads an XML-formatted SVG file from the given string. |
| 100 | func (sv *SVG) ReadString(s string) error { |
| 101 | return sv.SVG.ReadXML(strings.NewReader(s)) |
| 102 | } |
| 103 | |
| 104 | // SaveSVG saves the current SVG to an XML-encoded standard SVG file. |
| 105 | func (sv *SVG) SaveSVG(filename Filename) error { //types:add |