SharpPlot Reference > SharpPlot Methods > IncludeSource Method SharpPlot.IncludeSource Method
Add arbitrary (SVG/EPS) content to beginning or end of output stream.
Example
string svgfiters = "<defs> <filter id=\"MyShadow\"> <feGaussianBlur in=\"SourceAlpha\" stdDeviation=\"12\" result=\"blur\"/> " +
"<feOffset in=\"blur\" dx=\"24\" dy=\"20\" result=\"offsetBlur\"/> <feMerge> <feMergeNode in=\"offsetBlur\"/> " +
"<feMergeNode in=\"SourceGraphic\"/> </feMerge> </filter> </defs>";
sp.IncludeSource(svgfilter); // include filter in SVG definition
sp.AddEffect(ScriptTarget.Heading,"#MyShadow"); // use filter on heading
sp.DefineFont("AS","Arial,Sans","filter:url(#MyShadow)"); // define a font with filter
sp.SetFootnoteFont("AS"); // use font
Overloads
This would typically be used to add pre-written SVG filters to the final output. It can also add arbitrary content to the end of the generated output, by setting the atend value to true.
See also ...SharpPlot Members
Send comments on this topic © Dyalog Ltd 2016
|