Well, here is a code I made as a substitute to the LoadPicture function for a picture box. The difference is that you have control over each step of the process, and you can save all the pixel data into an array. This is helpful for analyzing images mathematically (as opposed to graphically).
Usually I'd display the image and use GetPixel API to check for the color of a certain pixel; this way is more practical and efficient.
Edit:
There was some trouble with the padding; it's now fixed.




Reply With Quote