My plan is to load a picture from a users hard drive and then do some wizardry on it in memory.
First thing is first, how can I get the height and width from an Image?
Also, say I wanted to select a rectangular piece from the image, how would I do that in memory (no GUI)?
Thank you for your guidance.
You will need to add a refernce to the System.Drawing namespace.
You can then use the Clone method with a Rectangle as the argument to get a sub-section of the image, or you can just loop through the pixels in the Rectangle of interest (you’ll want to use the Bitmap class for that, maybe LockBits and a pointer depending on how large the image is and how fast this needs to be).