Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pattern colors missing #1098

Open
Inspirateur opened this issue Oct 27, 2023 · 0 comments
Open

Pattern colors missing #1098

Inspirateur opened this issue Oct 27, 2023 · 0 comments

Comments

@Inspirateur
Copy link

Description

We're using this library in a SVG editor and i've noticed that all the patterns i use end up either black or missing in the png or jpeg image.

The simplified code looks something like this:

    // compute svg string
    var options = new ExportOptions(new Resolution(500, 500), ImageFormat.Png, 0f);
    Console.WriteLine(completeSvg);
    var svg = SvgDocument.FromSvg<SvgDocument>(completeSvg);
    bmp.Save(path, options.Format);

Putting the content of completeSvg in a svg file gives us this:
test

But the image looks like this:
Croquis 0

and jpeg has the same issue.

Used Versions

Windows 11
Dotnet 7.0.403
svg 3.4.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant