Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

comment on

( [id://3333] : superdoc . print w/replies, xml ) Need Help??

Yes, I was aware of Annotate, but I'd used draw in the command line version and there it worked. Annotate will suffice, but I'm still puzzled that the Draw doesn't work. The documentation does not seem to describe a way of supplying the text to be drawn for Draw and supplying the text as (... text=>"Hello World", ...) generates an error to the effect that "text" is not a valid parameter (I've not got the code here).

My other question is: how do I generate 50% transparent text? Have I to do it by generating the text in another image then compose the two images together, or is there a more direct way of generating partially transparent text on an image?

An even more fundamental question is: How do I generate a "blank" image that I can draw on?

Perl is Huffman encoded by design.

In reply to Re^2: Image Magick convert as Perl by GrandFather
in thread Image Magick convert as Perl by GrandFather

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.