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?