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

Background of png converted svg is white #246

Open
djonasdev opened this issue Feb 9, 2023 · 0 comments
Open

Background of png converted svg is white #246

djonasdev opened this issue Feb 9, 2023 · 0 comments
Assignees

Comments

@djonasdev
Copy link

djonasdev commented Feb 9, 2023

I don't want to convert my SVGs as png. That works so far. Unfortunately, the background of the SVG object is shown in white. If I now set the background to green, for example, then the background of the PNG is green, but that of the SVG is not.

var converter = new ImageSvgConverter(new WpfDrawingSettings());
converter.EncoderType = ImageEncoderType.JpegBitmap; // or png; doesn't matter
converter.Background = new SolidColorBrush(Colors.FooColor);
converter.Convert(...);

GoebelAOI Standby GoebelAOI WaitingForSuccessor

The white part should also be colored in green / purple. But it's always white. I have also tried other SVG files.

@paulushub paulushub self-assigned this Apr 29, 2023
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

2 participants