Clipping an image along a path
Posted: 2012-04-20T08:42:40-07:00
List,
Ok...I have an image, and I have a path inside the image that I would like to extract out. Can you show me via some example command-line code how to define the path for the image...then extract that section out...while maintaining the dimensions of the original image? My path is not a standard geometric shape each time...but, it is a polygon. I have a second image that is the same dimensions as the first...but, I want to extract a section of the first that changes, dynamically, and composite that extraction with the second. All I need help with is how to extract the polygon from the first image while maintaining the dimensions of the first image...because the first image has a transparent background.
Thanks in advance...
Matthew Duplantis
Ok...I have an image, and I have a path inside the image that I would like to extract out. Can you show me via some example command-line code how to define the path for the image...then extract that section out...while maintaining the dimensions of the original image? My path is not a standard geometric shape each time...but, it is a polygon. I have a second image that is the same dimensions as the first...but, I want to extract a section of the first that changes, dynamically, and composite that extraction with the second. All I need help with is how to extract the polygon from the first image while maintaining the dimensions of the first image...because the first image has a transparent background.
Thanks in advance...
Matthew Duplantis