You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like
I want to convert the image to gray sacle. I've tried OverrideColor, OverrideFillColor and OverrideStrokeColor, but the effect is not satisfying. Just like convert the png image to gray scale, how to do it in SVGImage? Or is there any way that I can get the rendered image to modify it by myself?
The text was updated successfully, but these errors were encountered:
SvgImage is no PNG image. It converts SVG Parts to WPF Drawing Objects.
Maybe code could be added, to convert each drawing color to a grayscale one. Needs to be tested.
If you need it, maybe you could create a pull request for this. I've no time to work on this.
For the moment, I managed to display the <svg> in gray scale, by using ShaderEffect based on a custom (but a simplified one, compared to others on the Internet) shader:
Describe the solution you'd like
I want to convert the image to gray sacle. I've tried
OverrideColor
,OverrideFillColor
andOverrideStrokeColor
, but the effect is not satisfying. Just like convert the png image to gray scale, how to do it in SVGImage? Or is there any way that I can get the rendered image to modify it by myself?The text was updated successfully, but these errors were encountered: