Skip to content

Pattern colors missing #1098

@Inspirateur

Description

@Inspirateur

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions