Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.7.0

Request #2450 Drop Shadows
Submitted: 2004-10-04 20:54 UTC
From: se at hexatex dot de Assigned: bigmichi1
Status: Closed Package: Image_Text
PHP Version: 4.3.8 OS:
Roadmaps: 0.8.0    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 4 + 5 = ?

 
 [2004-10-04 20:54 UTC] se at hexatex dot de
Description: ------------ It would be nice to have an easy way to have drop shadows. Reproduce code: --------------- # this is what I did to emulate drop shadows, it is probably not ideal $c = 'A Headline!'; $w = 510; $h = 80; $options1 = array( 'canvas' => array('width'=> $w,'height'=> $h + 1), 'width' => $w, 'height' => $h - 10, 'line_spacing' => .4, 'color' => '#333333', 'max_lines' => 3, 'min_font_size' => 2, 'max_font_size' => 50, 'font_size' => 36, 'font_path' => LIBDIR . '/fonts/', 'font_file' => 'trebuc.ttf', 'valign' => IMAGE_TEXT_ALIGN_BOTTOM ); $options2 = $options1; $options2['color'] ='#000000'; $text1 = new Image_Text($c, $options1); $text2 = new Image_Text($c, $options2); $text1->init(); $text2->init(); $img1 =& $text1->getImg(); $img2 =& $text2->getImg(); $white = imagecolorallocate($img1, 255, 255, 255); imagefilledrectangle($img1, 0, 0, $w, $h, $white); imagefilledrectangle($img2, 0, 0, $w, $h, $white); $text1->autoMeasurize(14, 26); $text2->autoMeasurize(14, 26); $text2->render(); imagecopymerge($img1, $img2, 1, 1, 0, 0, $w, $h, 30); $text1->render(); $text1->display();

Comments

 [2013-08-08 13:46 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2013-08-08 14:30 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!