Update SvgText Content dynamically #999
Unanswered
PraveenSuryawanshi-Dev
asked this question in
Q&A
Replies: 1 comment
-
Please use Text property for updating text. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
var svgDoc = SvgDocument.Open(stream);
var bitmap0 = svgDoc .Draw(rasterWidth, rasterHeight);
svgDoc .GetElementById("#1").Children[1].Children[0].Content = "0";
var bitmap1 = svgDoc .Draw(rasterWidth, rasterHeight);
svgDoc .GetElementById("#1").Children[1].Children[0].Content = "1";
var bitmap2 = svgDoc .Draw(rasterWidth, rasterHeight);
The pseudo example code doesn't update the modified content. Is it possible to modify the content without parsing the SVG from string again.
modifying the string format and reparsing to get the SvgDocument will get a latency so wanted to modify the part of the element dynamically and render again.
Can you help me solve this problem? Please let us know if you have a reference to work or working code snippets.
Example data
Used Versions
version : v4.0.30319
Beta Was this translation helpful? Give feedback.
All reactions