Sets the background color in case of rotation.

@param CINColor $backgroundColor
168109
public /*internal*/ function setBackgroundColor($backgroundColor) {
        $this->backgroundColor = $backgroundColor;
        $this->font->setBackgroundColor($this->backgroundColor);
    }
1074880
public function setBackgroundColor($backgroundColor)
    {
        if (null === $backgroundColor) {
            return $this;
        }

        $this->backgroundColor = $this->convertColor($backgroundColor);

        return $this;
    }
300378
public void setBackgroundColor(Color colorBackground)
    {
        m_colorBackground = colorBackground;
        if (m_parent != null)
        {
            JTiledImage panel = (JTiledImage)JBasePanel.getSubScreen(this, JTiledImage.class);
            if (panel != null)
                panel.setBackground(colorBackground);
        }
    }
1020821
public void setBarBackgroundColor(final Color COLOR) {
        if (null == barBackgroundColor) {
            _barBackgroundColor = COLOR;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            barBackgroundColor.set(COLOR);
        }
    }
1364735
@SuppressWarnings("unused")
    public void setCancelColor(@ColorInt int color) {
        mCancelColor = Color.argb(255, Color.red(color), Color.green(color), Color.blue(color));
    }
27765
public function setForegroundColor($code) {
        if ($code instanceof CINColor) {
            $this->colorFg = $code;
        } else {
            $this->colorFg = new CINColor($code);
        }
    }
675067
protected function _set_fill_color($color)
    {
        $this->_pdf->setColor($color);
        $alpha = isset($color["alpha"]) ? $color["alpha"] : 1;
        if ($this->_current_opacity) {
            $alpha *= $this->_current_opacity;
        }
        $this->_set_fill_transparency("Normal", $alpha);
    }
206212
public function setBackgroundColor($backgroundColor)
    {
        if ( is_null($this->backColor) ) {
            $this->backColor = new Color;
        }

        $this->backColor->setFromArray($backgroundColor);

        return $this;
    }
571834
public void setColor(@ColorInt int color) {
    this.color = color;
    if (!style.isFullyLoaded()) {
      // We are in progress of loading a new style
      return;
    }

    fillExtrusionLayer.setProperties(fillExtrusionColor(color));
  }
640820
protected function _set_fill_color($color) {
    if($this->_last_fill_color == $color)
      return;

    $this->_last_fill_color = $color;

      if (isset($color[3])) {
      $type = "cmyk";
      list($c1, $c2, $c3, $c4) = array($color[0], $color[1], $color[2], $color[3]);
    }
    elseif (isset($color[2])) {
      $type = "rgb";
      list($c1, $c2, $c3, $c4) = array($color[0], $color[1], $color[2], null);
    }
    else {
      $type = "gray";
      list($c1, $c2, $c3, $c4) = array($color[0], $color[1], null, null);
    }
    
    $this->_pdf->setcolor("fill", $type, $c1, $c2, $c3, $c4);
  }
1060451
public function setBackgroundColor($r, $g, $b)
    {
        $this->backgroundColor = array($r, $g, $b);

        return $this;
    }
870759
public function setBackgroundHexColor($backgroundHexColor)
    {
        if ( is_null($this->frontColor) ) {
            $this->backColor = new Color;
        }

        $this->backColor->hex($backgroundHexColor);

        return $this;
    }
930350
public void setBackgroundColor(int color) {
        setBackgroundColorR(Colors.byteToGl(Color.red(color)));
        setBackgroundColorG(Colors.byteToGl(Color.green(color)));
        setBackgroundColorB(Colors.byteToGl(Color.blue(color)));
        setBackgroundColorA(Colors.byteToGl(Color.alpha(color)));
    }
390227
public function setBackgroundColor($code) {
        if ($code instanceof CINColor) {
            $this->colorBg = $code;
        } else {
            $this->colorBg = new CINColor($code);
        }

        foreach ($this->labels as $label) {
            $label->setBackgroundColor($this->colorBg);
        }
    }
1349562
protected function initialize($color)
    {
        $colors = explode(',', $color);
        list($this->red, $this->green, $this->blue) = array_map('intval', $colors);
        $this->alpha = (double) $colors[3];
        $this->background = $this->defaultBackground();
    }
397051
public function setForegroundHexColor($foregroundHexColor)
    {
        if ( is_null($this->frontColor) ) {
            $this->frontColor = new Color;
        }

        $this->frontColor->hex($foregroundHexColor);

        return $this;
    }
225562
public function rotate($degrees, $background = null, $random = false)
    {
        if ($background) {
            $background = trim($background);
        } else {
            $background = "ffffff";
        }

        if ($random) {
            $deg = abs((float) $degrees);
            $degrees = rand(-1 * $deg, $deg);
        }

        $this->image->rotate($degrees, $background);
    }