-
I've written code to scan a PictureBox (Picture1) from top left to bottom right pixel by pixel. I have used a loop with GetPixel for this an logged RGB values in an array.
I then want to paint another PictureBox (Picture2) with those values using SetPixel in the same loop based fasion, reading from the array.
I may modify the values between these two stages, but my problem is with SetPixel - I don't know how to define the pixel I want to set or to set it.
What I therefore need is a simple bit of code on how to paint a PictureBox using SetPixel with a value from a variable (E.g ColorVAL).
Any ideas?
-
Don't use Setpixel, Setpixelv is faster.
And don't post in this forum, it's for feedback on the forums only. Post in 'General VB Questions' or 'Games And Graphics Programming'.