crop out a polygon from png

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
chenhao
Posts: 3
Joined: 2015-10-21T05:18:25-07:00
Authentication code: 1151

crop out a polygon from png

Post by chenhao »

how to crop out a polygon from png
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: crop out a polygon from png

Post by snibgo »

Images are rectangular. What do you want to happen to pixels?

Perhaps you want all pixels outside a polygon to become transparent. You can draw a white polygon on a black background, then CopyOpacity that to the image.
snibgo's IM pages: im.snibgo.com
chenhao
Posts: 3
Joined: 2015-10-21T05:18:25-07:00
Authentication code: 1151

Re: crop out a polygon from png

Post by chenhao »

@snibgo thank you very much. my problem had been solved.
Post Reply