Customize the Color for SVG Images
Environment
Product Version | Product | Author |
---|---|---|
2021.3.119 | SVG Images for WinForms | Desislava Yordanova |
Description
Telerik UI for WinForms suite offers support for vector images. This article demonstrates a sample approach how you can change the color used in the vector image.
Solution
First, you need to open the svg file in Notepad and have a look of its definition and what elements are contained, e.g. paths, polygons, etc. Then, you can look for the respective elements in the RadSvgImage and customize the respective Stroke or Fill:
It is important to note that depending on the internal structure of the svg image you may need to customize more internal elements.