❔ Coloured Images

How do I colour an image by multiplying each of the colour values by another colour value. I'm using Avalonia but anything is helpful.
2 Replies
Klarth
Klarth7mo ago
Manually, AFAIK. I prefer having ownership over the process when I'm doing image manipulation. That means having it stored as a pixel buffer, SKBitmap, or sometimes WriteableBitmap. Those can all be manipulated directly or you can probably use something like SKColorFilter.CreateColorMatrix if you're using SKBitmap. If you're loading something directly into an image control, you could use a converter to apply the effect with manually written code. But I prefer to just assign Image.Source (to a WriteableBitmap) or self-render a SKBitmap myself.
Accord
Accord7mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.