Skip to content
Discussion options

You must be logged in to vote

@lucgomoliv

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();
}

output

First, make sure that PNG file path is correct.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mrbean-bremen
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #839 on March 25, 2021 18:40.