Resolved Using GetPixel(x, y) With A Scaled PictureBox

zunebuggy65

Active member
Joined
Oct 12, 2023
Messages
42
Programming Experience
3-5
I want to load an image into a PictureBox but only display the image with a max height and/or width (thumbnail), but do some basic pixel manipulation using GetPixel(x,y), SetPixel(x, y). Probably a stupid question, but if I am displaying a thumbnail, do I have to load the image twice with Visible = False on the full image, to read each pixel or will it read each pixel no matter the scale size displayed on the screen?
 
The Image object and the pixels you see on the screen are not the same thing. The Image is what the Image is. That object doesn't change depending on how you display it on-screen. If it did then you wouldn't be able to display the same Image on-screen in different ways at the same time. You can do that though, so obviously how it's displayed doesn't affect the underlying object.
 
Back
Top