Converting white pixel to any over color with aforge/setpixel

58 Views Asked by At

i have the following code in vb.net to convert a single pixel to any other color. The chosen parameter inside of setpixel are for test purposes.

InvoiceImage.SetPixel(0 , 0, color.FromArgb(30, 30, 30))

But i get the following error: Exception has been thrown by the target of an invocation. Why is that?

1

There are 1 best solutions below

0
schmanh On

cloning the bitmap one more time and executing SetPixel on this copy worked ;)