Fix generate BR
This commit is contained in:
parent
5364b25eb4
commit
427b5e765a
1 changed files with 3 additions and 3 deletions
|
|
@ -42,13 +42,13 @@ trait GenerateBR {
|
|||
imagecolortransparent($ImageFond, $white);
|
||||
imagecopy($mask, $ImageFond, 743, 365, 0, 0, imagesx($ImageFond), imagesy($ImageFond));
|
||||
} else {
|
||||
$ImageFond = imagecreate(185, 27);
|
||||
$ImageFond = imagecreate(195, 27);
|
||||
$box1 = imagettfbbox(7, 0, $arial, $text);
|
||||
$white = imagecolorallocate($ImageFond, 255, 255, 255);
|
||||
$black = imagecolorallocate($ImageFond, 0, 0, 0);
|
||||
$this->imagettftextSp($ImageFond , 7 , 0, 5, 23, $black, $arial, $text, 0.01);
|
||||
$this->imagettftextSp($ImageFond , 7 , 0, 5, 23, $black, $arial, $text, 0);
|
||||
imagecolortransparent($ImageFond, $white);
|
||||
imagecopy($mask, $ImageFond, 723, 365, 0, 0, imagesx($ImageFond), imagesy($ImageFond));
|
||||
imagecopy($mask, $ImageFond, 713, 365, 0, 0, imagesx($ImageFond), imagesy($ImageFond));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue