unset($tmpim); if (!isset($BackgroundColour['alpha'])) { $ixbgcolor = imagecolorallocate($im, $BackgroundColour['red'], $BackgroundColour['green'], $BackgroundColour['blue']); } else { $ixbgcolor = imagecolorallocatealpha($im, $BackgroundColour['red'], $BackgroundColour['green'], $BackgroundColour['blue'], $BackgroundColour['alpha']); } if (!isset($TextColour['alpha'])) { $ixtextcolor = imagecolorallocate($im, $TextColour['red'], $TextColour['green'], $TextColour['blue']); } else { $ixtextcolor = imagecolorallocatealpha($im, $TextColour['red'], $TextColour['green'], $TextColour['blue'], $TextColour['alpha']); } //imagealphablending ( $im, false); } // Have we got transparency requirements if (isset($TranspColour)) { $TranspColour = DecodeBgColor($TranspColour); if ($TranspColour != $BackgroundColour) { if (!isset($TextColour['alpha'])) { $ixtranscolor = imagecolorallocate($im, $TranspColour['red'], $TranspColour['green'], $TranspColour['blue']); } else { $ixtranscolor = imagecolorallocatealpha($im, $TranspColour['red'], $TranspColour['green'], $TranspColour['blue'], $TranspColour['alpha']); } } else { $ixtranscolor = $ixbgcolor; } } if ($doTrans) { imagecolortransparent($im, $ixtranscolor); } if ($doTrans) { $ixtextbgcolor = $ixtranscolor;
unset($tmpim); if (!isset($bgcolor['alpha'])) { $ixbgcolor = imagecolorallocate($im, $bgcolor['red'], $bgcolor['green'], $bgcolor['blue']); } else { $ixbgcolor = imagecolorallocatealpha($im, $bgcolor['red'], $bgcolor['green'], $bgcolor['blue'], $bgcolor['alpha']); } if (!isset($textcolor['alpha'])) { $ixtextcolor = imagecolorallocate($im, $textcolor['red'], $textcolor['green'], $textcolor['blue']); } else { $ixtextcolor = imagecolorallocatealpha($im, $textcolor['red'], $textcolor['green'], $textcolor['blue'], $textcolor['alpha']); } //imagealphablending ( $im, false); } // Have we got transparency requirements if (isset($transcolor)) { $transcolor = DecodeBgColor($transcolor); if ($transcolor != $bgcolor) { if (!isset($textcolor['alpha'])) { $ixtranscolor = imagecolorallocate($im, $transcolor['red'], $transcolor['green'], $transcolor['blue']); } else { $ixtranscolor = imagecolorallocatealpha($im, $transcolor['red'], $transcolor['green'], $transcolor['blue'], $transcolor['alpha']); } } else { $ixtranscolor = $ixbgcolor; } } if ($doTrans) { imagecolortransparent($im, $ixtranscolor); } if ($doTrans) { $ixtextbgcolor = $ixtranscolor;