Exception thrown by an Target of an Invocation

Hey community,

i’ve been working on an image-manipulating project. For that I have used the Aforge package to get information about the pixel. Now I have come to a point, where I want to change the color of certain pixels I have used the SetPixel method inside an “Invoke Code” activity. But Im getting an Exception thrown by an target of an invocation error.
Anyone who can help me with this?


Welcome to the community

Can you show what you are doing in the code

If you used variables/arguments check if they have data…

First try with hardcoded value to confirm


Its fine, I found a solution.
I just cloned the bitmap and executed the SetPixel command on this copy
thx anyway