How to include images (png) to SvgDocument
?
#842
-
I was trying to draw a SVG but it has a Edit: It's a reference to a file in the computer. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Do you have specific sample codes ? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I can display a PNG image with the following code. using (var ms = new MemoryStream(System.Text.Encoding.UTF8.GetBytes(svg)))
{
SvgDocument document = SvgDocument.Open<SvgDocument>(ms);
svgImage.Image = document.Draw();
} outputFirst, make sure that PNG file path is correct. |
Beta Was this translation helpful? Give feedback.
-
I debug with the dll and it doesn't consider (for me) the Edit: the path is correct, I'm sure about this |
Beta Was this translation helpful? Give feedback.
-
Ok, I realized what happened, because of |
Beta Was this translation helpful? Give feedback.
@lucgomoliv
I can display a PNG image with the following code.
output
First, make sure that PNG file path is correct.