You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to obtain the result of imagettftext that is called on write method of GD class.
To do this I put a variable on GD called "last_write" to get the last result of this operation. The thing is that I modify the code on GD.php file but the changes dont seem to happen. Do I need to update composer or similar thing?
class GD extends Common
{
public $last_write;
...
public function write($font, $text, $x = 0, $y = 0, $size = 12, $angle = 0, $color = 0x000000, $align = 'left')
{
imagealphablending($this->resource, true);
if ($align != 'left') {
$sim_size = self::TTFBox($font, $text, $size, $angle);
if ($align == 'center') {
$x -= $sim_size['width'] / 2;
}
if ($align == 'right') {
$x -= $sim_size['width'];
}
}
$this->last_write = imagettftext($this->resource, $size, $angle, $x, $y, ImageColor::gdAllocate($this->resource, $color), $font, $text);
return $this;
}
The text was updated successfully, but these errors were encountered:
I need to obtain the result of imagettftext that is called on write method of GD class.
To do this I put a variable on GD called "last_write" to get the last result of this operation. The thing is that I modify the code on GD.php file but the changes dont seem to happen. Do I need to update composer or similar thing?
The text was updated successfully, but these errors were encountered: