Page 1 of 1

Hashed Polygons

Posted: 2012-04-19T09:44:18-07:00
by MatthewDuplantis
List,

I would like to draw a polygon on top of an image...but, instead of filling the polygon with a color...I would like to have the area "hatched" or a series of parallel dashed lines.

The second, third, and fourth images found here: http://www.spc.noaa.gov/products/outloo ... _1300.html
explain what I am trying to do.

I can draw the color filled polygons...but how would I go about doing "hatched" areas using a command-line tool such as convert in ImageMagick?

Thanks,
Matthew

Re: Hashed Polygons

Posted: 2012-04-19T16:10:00-07:00
by anthony
Replace 'fill' with a 'tile' When a tile image is active it will override the fill.

Typically 'fill' itself can take an image, as long as it does not have the same name as a valid color.

Actually I am very surprised I don't mention this on the "Drawing on Images" section of IM Examples!