I'm trying to make a small program in c#, that will downsample image to specified amount of colors (using K-means). Then, user will be able to hide\show colored areas(clusters) in image. I've implemented image clustering algorithm and I also have info about main colors, but how to implement show/hide color function? Example below
for this moment program only simplifies image (in this example 5 colors) 

this is what I want to have
Paletteproperty ?