/**
  * {@inheritdoc}
  */
 protected function doApply(CanvasInterface $canvas)
 {
     $result = imagerotate($canvas->getHandler(), $this->getDegree(), $this->getBackgroundColor()->getValue(), 0);
     $canvas->setHandler($result);
 }