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?
cloning the bitmap on more time and executing SetPixel on this copy worked;)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.