Code base synced, updated
[mailer.git] / inc / classes / main / images / class_BaseImage.php
index 7c1e0891cd92102079a0a7c5958aaff73469e87b..7f667cde4a48e487d69789dffbdf59532435c32c 100644 (file)
@@ -469,10 +469,10 @@ class BaseImage extends BaseFrameworkSystem implements Registerable {
                $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']);
@@ -486,7 +486,7 @@ class BaseImage extends BaseFrameworkSystem implements Registerable {
                $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
@@ -502,7 +502,7 @@ class BaseImage extends BaseFrameworkSystem implements Registerable {
                                $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
@@ -521,7 +521,7 @@ class BaseImage extends BaseFrameworkSystem implements Registerable {
 
                                        // 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;
                }