|
-
Nov 9th, 2000, 11:42 AM
#1
Thread Starter
Junior Member
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?
-
Nov 9th, 2000, 12:13 PM
#2
Fanatic Member
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'.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|