Page 1 of 1

Complex regions

Posted: 2013-11-10T11:43:45-07:00
by wurzelmac
For example: -region 100x100+50+50 is "only" a rectangle.
Is there a possibility to make complex regions such as polygons, or are only rectangles practicable?

Thanks in advance,
wurzelmac

Re: Complex regions

Posted: 2013-11-10T11:46:40-07:00
by fmw42
use -mask rather than -region and build your own mask shape using -draw

see
http://www.imagemagick.org/Usage/masking/#write_mask
http://www.imagemagick.org/Usage/draw/#primitives

Re: Complex regions

Posted: 2013-11-10T11:51:17-07:00
by wurzelmac
Thanks for this very quick reply, much appreciated!

wurzelmac

Re: Complex regions

Posted: 2013-11-10T12:54:49-07:00
by wurzelmac
Another question: Is it possible to "pixelize" an area that was specified with -draw like in the attached screenshot?
Thanks in advance, wurzelmac

Image

Re: Complex regions

Posted: 2013-11-10T13:02:21-07:00
by fmw42
To pixelize:

convert rose: -scale 10% -scale 1000% show:

Re: Complex regions

Posted: 2013-11-10T13:10:27-07:00
by wurzelmac
What a prompt help - thanks again!

Oh, and it seems to be that I have forgotten a bit of nettiquette: I am new here - thanks for every help, much appreciated!

Thanks a lot,
wurzelmac

Re: Complex regions

Posted: 2013-11-10T13:40:22-07:00
by fmw42