Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

comment on

( [id://3333] : superdoc . print w/replies, xml ) Need Help??
An even more fundamental question is: How do I generate a "blank" image that I can draw on?
I'll take that one first (reference: perl-magick -- search for "xc" in the Examples section):
my $image = Image::Magick->new(); $image->Set(size=> "800x600"); $image->ReadImage('xc:white');
See also this formats page for what IM takes (XC is listed there as well as some built-in images and patterns).

Annotate will suffice, but I'm still puzzled that the Draw doesn't work.
me too.. i guess it's just another IM inconsistancy .. (note at least in the|docs] that Draw doesn't list a 'text' parameter)

My other question is: how do I generate 50% transparent text?
umm.. no clue.. But i suspect if there is an answer it might be on this site: ImageMagick v6 Examples -- seems like a very good collection of faq/how-to's...

In reply to Re^3: Image Magick convert as Perl by davidrw
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.