Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Caption-like text with PerlMagick

by mcoblentz (Scribe)
on Jul 04, 2013 at 22:02 UTC ( [id://1042531]=note: print w/replies, xml ) Need Help??


in reply to Caption-like text with PerlMagick

Turns out I needed to control the "alpha" channel with the fill. The code looks like this:
<snippet> $image->Draw( fill=>'rgba(0,0,0,0.55)', primitive=>'rectangle', points +=>'1460,1000 2060,1180'); $image->Annotate( gravity=>'southeast', font=>'Arial', pointsize=>18, +fill=>'red', x=>500, y=>100, text=>"Quake Information Last Updated +at: Mon Jul 1 21:09:46 2013" ); $image->Annotate( gravity=>'southeast', font=>'Arial', pointsize=>18, +fill=>'green', x=>500, y=>125, text=>"NORAD Information Last Update +d at: Mon Jul 1 21:09:46 2013" ); </snippet>

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1042531]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-18 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found