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

having trouble rendering coloured files on WPF Net Core #136

Closed
josephwambura opened this issue Jun 19, 2020 · 6 comments
Closed

having trouble rendering coloured files on WPF Net Core #136

josephwambura opened this issue Jun 19, 2020 · 6 comments
Assignees

Comments

@josephwambura
Copy link

image

From the image on the left, the colors are visible, but on the right, it is only in black! Kindly help.

...
xmlns:svgc="http://sharpvectors.codeplex.com/svgc/"
...
<Image Source="{svgc:SvgImage ../Resources/sample1.svg}" Stretch="Uniform" />

Check the question on StackOverflow
Stack Overflow

@paulushub paulushub self-assigned this Jun 20, 2020
@paulushub
Copy link
Contributor

@josephwambura Please can you post the SVG file for testing and verification?

@josephwambura
Copy link
Author

Firebase hosted svg file

@paulushub
Copy link
Contributor

@josephwambura Thanks for the file. Sorry, I could not reproduce the error on my system.

NOTE: Using the syntax as above is trying to locally access the SVG file, not as resource file. Even in this case, the result should be that the image will not be rendered, not the darkened picture shown.
Also, only .NET Core 3.1 is supported in the assemblies.

I have attached sample using the image on .NETCore 3.1 project, as both local source file and as resource (setting the Build Action of the SVG file to Resource).
In both cases, the images are correctly rendered.

WpfApp2.zip

@josephwambura
Copy link
Author

Thanks lemme check what i am doing wrong.

@josephwambura
Copy link
Author

@paulushub I am really sorry, I was using

<PackageReference Include="SharpVectors" Version="1.0.0" />

instead of

<PackageReference Include="SharpVectors.Reloaded" Version="1.6.0" />

Your sample code really helped! Thanks

@paulushub
Copy link
Contributor

@josephwambura Sorry, somebody created that Version 1.0.0.0, so I was forced to use different name for the Nuget package.

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