Bug in setSliceColor (incorrect Alpha)
Please correct Format Alpha:
Code:
/* Set the color of the specified slice */
function setSliceColor($SliceID,$Format="")
{
$R = isset($Format["R"]) ? $Format["R"] : 0;
$G = isset($Format["G"]) ? $Format["G"] : 0;
$B = isset($Format["B"]) ? $Format["B"] : 0;
==> $Alpha = isset($Format["alpha"]) ? $Format["Alpha"] : 100; <==
$this->pDataObject->Palette[$SliceID]["R"] = $R;
$this->pDataObject->Palette[$SliceID]["G"] = $G;
$this->pDataObject->Palette[$SliceID]["B"] = $B;
$this->pDataObject->Palette[$SliceID]["Alpha"] = $Alpha;
}
TO Code:
/* Set the color of the specified slice */
function setSliceColor($SliceID,$Format="")
{
$R = isset($Format["R"]) ? $Format["R"] : 0;
$G = isset($Format["G"]) ? $Format["G"] : 0;
$B = isset($Format["B"]) ? $Format["B"] : 0;
$Alpha = isset($Format["Alpha"]) ? $Format["Alpha"] : 100;
$this->pDataObject->Palette[$SliceID]["R"] = $R;
$this->pDataObject->Palette[$SliceID]["G"] = $G;
$this->pDataObject->Palette[$SliceID]["B"] = $B;
$this->pDataObject->Palette[$SliceID]["Alpha"] = $Alpha;
}