So yeah, we added a handful of SVG images to a Forms App we are working on. That is all fine and dandy. The problem is that the images are going to change.
How? Well, let's say that as long as the app is running (which, given its functionality, is almost an entire day) is going to receive a certain amount of data the is going to change the appearance of said SVG images. The data in question is a number and a string containing a colour (in hex).
What do we want to do with this number and hex? Modify the SVG, change the usual black colour into the hex and write the number on top of the image. Sounds simple, yet it's proven to be quite impossible.
Normally, what we do is fill the resources with the same image (png, obviously) in different colours so that, when necessary, changing from one colour to another is as easy as changing the Image's source. BUT, since we do not know the colours beforehand (and also, they are subject to change), we have to manipulate the SVG as the app runs. The integer is no easy feat either.
If someone knows about how to do something like this, we'll be grateful to hear. Please, ask about any info about our project we might have overlooked (packages, frameworks, etc.).
P.S.: In ordrer to load the SVG,s, we use SkiaSharp. Any alternative will be welcome. As long as it works in our framework.
Visual Studio for Mac (Community) V. 8.8 (build 2913)
.NET Standard 2.0