How do I change a non-rectangular portion of an image into an image?
Posted on 2010-09-19
This is a problem for image manipulation using visual studio.
I have a photo of a part. The part is rectangular, but the image of the part may not be rectangular. It will be quadrilateral of course.
I want to create an image by identifying the four corners of the object, clipping to that area and putting that into a rectangular bit map. Another way to think of it is to skew the original image so the part is rectangular and then crop there.
I know that i can do a pixel by pixel creation of the new image, but I'm guessing that's computationally slow.
Is there a way to skew, distort, or translate an object within .net to achieve the new rectangular image?