-2

I am making simple notebook app. I want for each note set image like star or bell and set its color. What is the way to "change" color of image in WPF. I will be satisfied with some effect that will only show the color in the app. I don't need to change the picture. Is possible to use some colored mask on the surface of the image?

enter image description here

Sebastian Inones
  • 1,561
  • 1
  • 19
  • 32
FoksaK
  • 121
  • 1
  • 9
  • Could you provide an example of your code and what type of images are you speaking about. Are you working with **Bitmap** images for example? You could use [Shape objects](https://learn.microsoft.com/en-us/dotnet/framework/wpf/graphics-multimedia/shapes-and-basic-drawing-in-wpf-overview) to draw a shape to the screen. So, you could change the color easily. – Sebastian Inones Feb 02 '20 at 10:48
  • @SebastianInones I want to set color and then show colored image in my app. I use png. I dont want overwrite image. I want only use something like mask on the image if is it possible. – FoksaK Feb 02 '20 at 11:06

1 Answers1

0

Based on what you said about : use some colored mask on the surface of the image?

I guess you could you use Opacity Masks. Also, take a look at this which is solved using a named-color as an example

Another approach based on what you said : I will be satisfied with some effect that will only show the color in the app you could use some Bitmap Effects, maybe the OuterGlowBitmapEffect

I hope this points you in the right direction.

Sebastian Inones
  • 1,561
  • 1
  • 19
  • 32