O'Reilly logo

ImageMagick Tricks by Sohail Salehi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Painting Methods

One of the important roles of the draw option is filling an area with a specified color. There are many parameters for doing this. In fact all of them use point as the basic parameter. In the next workshop we will study them in detail.

Workshop II: Color Filling with draw

  1. Make a 400x100 .png file and draw the following items on it:
    Workshop II: Color Filling with draw

    Fig 3-5: Creating an Image with the Draw Option

    You know how to do this from the previous workshop, don’t you? There is just one new tip. For defining and using a stoke around the text add the following code to your convert command call:

    convert <required codes for page setting,color definitions & rectangle ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required