Example #1
0
 /**
  * {@inheritdoc}
  */
 public function interlace($scheme)
 {
     static $supportedInterlaceSchemes = array(ImageInterface::INTERLACE_NONE => \Gmagick::INTERLACE_NO, ImageInterface::INTERLACE_LINE => \Gmagick::INTERLACE_LINE, ImageInterface::INTERLACE_PLANE => \Gmagick::INTERLACE_PLANE, ImageInterface::INTERLACE_PARTITION => \Gmagick::INTERLACE_PARTITION);
     if (!array_key_exists($scheme, $supportedInterlaceSchemes)) {
         throw new InvalidArgumentException('Unsupported interlace type');
     }
     $this->gmagick->setInterlaceScheme($supportedInterlaceSchemes[$scheme]);
     return $this;
 }