public function setSliceColor($SliceID, array $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;
    }
public function setSliceColor($SliceID, array $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;
    }
public function setSliceColor ( $ SliceID , array $ 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 ; }
Set the color of the specified slice
@param mixed $SliceID
@param array $Format
Set the color of the specified slice