View unanswered posts | View active topics It is currently Sun Apr 28, 2024 9:14 pm



Reply to topic  [ 2 posts ] 
Bug in setSliceColor (incorrect Alpha) 
Author Message
Post 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;
    }


Mon Dec 13, 2010 2:07 pm
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: Bug in setSliceColor (incorrect Alpha)
Stupid typo. Fixed in the 2.0.7

Thanks for having reported it ;o)

JD.


Mon Dec 13, 2010 2:12 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron