how to replace color in picture box ?

hello, i have another question.
My program has a few pictureboxes in which i load some .jpg images.
I would like to know how can i replace a specific color in those images every time my prog loads.
I want to replace the background color of each image with the form background color which changes according to the windows theme that the user has.

Thanks,
G X


Answer this question

how to replace color in picture box ?

  • wazhoo

    If you're using VB.NET, try drawing the images yourself and using the ImageAttributes class to set transparency, so windows will continue to draw the background in whatever color it likes.


  • how to replace color in picture box ?