Home » Images » Image_Text » Bug #2520
set background-color
Details
| Request #2520 | set background-color |
|---|---|
| Submitted | 2004-10-13 15:56 UTC |
| From | chef at fehlerx dot net |
| Assigned | cweiske |
| Status | Closed |
| Package | Image_Text |
| PHP Version | 4.3.9 |
| Roadmaps | (Not assigned) |
Comments
[2004-10-13 15:56 UTC] chef at fehlerx dot net
Description:
------------
new option "background_color"
setting the background-color by Image_Text would be nice.
to implement directly after line 594 in Image/Text.php
Thanks.
Malte-Thorben Bruns
Reproduce code:
---------------
// sample code
$img = imagecreatetruecolor($cy, $cx);
$bg_color = imagecolorallocate($img,$bg[0],$bg[1],$bg[2]);
imagefill($img, $cy-1, $cx-1, $bg_color);