public function getInt()
    {
        $r = $this->getRedValue();
        $g = $this->getGreenValue();
        $b = $this->getBlueValue();
        $a = (int) round($this->getAlphaValue() * 255);

        return (int) (($a << 24) + ($r << 16) + ($g << 8) + $b);
    }