$this->setBlue($blue);
// Get a pointer for background color
- $backColor = imagecolorallocate($this->imageResource, $red, $green, $blue);
+ $backColor = imagecolorallocate($this->getImageResource(), $red, $green, $blue);
// Fill the image
- imagefill($this->imageResource, 0, 0, $backColor);
+ imagefill($this->getImageResource(), 0, 0, $backColor);
// Compile foreground colors
$red = $templateInstance->compileRawCode($this->foregroundColor['red']);
$this->setBlue($blue);
// Get a pointer for foreground color
- $foreColor = imagecolorallocate($this->imageResource, $red, $green, $blue);
+ $foreColor = imagecolorallocate($this->getImageResource(), $red, $green, $blue);
switch ($this->groupable) {
case "single": // Single image string
$size = $templateInstance->compileRawCode($this->getFontSize());
// Set the image string
- imagestring($this->imageResource, $size, $x, $y, $imageString, $foreColor);
+ imagestring($this->getImageResource(), $size, $x, $y, $imageString, $foreColor);
break;
case "groupable": // More than one string allowed
// Set the image string
//* DEBUG: */ echo __METHOD__.": size={$size}, x={$x}, y={$y}, string={$imageString}<br />\n";
- imagestring($this->imageResource, $size, $x, $y, $imageString, $foreColor);
+ imagestring($this->getImageResource(), $size, $x, $y, $imageString, $foreColor);
} // END - foreach
break;
}