private function drawErrorMessage($sMessage) { // settings $iFontSizeNormal = $this->oThemeConfig->getInteger('theme.text.size.normal'); $sFontFileNormal = $this->oThemeConfig->getString('theme.text.font.normal'); $sFontColorError = $this->oThemeConfig->getString('theme.text.color.error'); $bFontAntiAlias = $this->oThemeConfig->getInteger('theme.text.anti-alias'); $fLineSpacing = $this->oThemeConfig->getFloat('theme.text.line-spacing'); // destroy old image $this->destroy(); // create new image $this->loadPng($this->aThemeFiles['background']); // enable alpha $this->setAlphaBlending(true); $this->setSaveFullAlpha(true); // draw error icon $errorIcon = new GDImage(); $errorIcon->loadPng($this->aThemeFiles['error']); $this->copy($errorIcon, 8, $this->getHeight() / 2 - 8); $errorIcon->destroy(); // allocate color $iFontColor = $this->getColorHex($sFontColorError, $bFontAntiAlias); // draw text $this->drawTextFT($sMessage, $sFontFileNormal, $iFontSizeNormal, 0, $iFontColor, 30, $this->getHeight() / 2, array('linespacing' => $fLineSpacing)); }