Is there an easy way to manipulate a bitmap image to change every pixel from one color to another? I have star images in a datagridview column that I want to change background color when highlighted.
Thanks!
Printable View
Is there an easy way to manipulate a bitmap image to change every pixel from one color to another? I have star images in a datagridview column that I want to change background color when highlighted.
Thanks!
you could write a small program that changes the colour of your star image using .setpixel
use 2 loops
vb Code:
Dim img As New Bitmap(filename) for c = 0 to img.width for r = 0 to img.height if img.GetPixel(c, r) = ctype(color.fromargb(r,g,b), long) then img.SetPixel(c, r, Color.Blue) end if next next
then you can change images, in your selected event
That's good stuff and should take care of things fine.
Thanks so much! :wave: