Hashed Polygons

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
MatthewDuplantis
Posts: 2
Joined: 2012-04-19T09:39:29-07:00
Authentication code: 13

Hashed Polygons

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Hashed Polygons

Post 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!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply