Exemplo n.º 1
0
 protected function _border($size, $color = null)
 {
     extract(parent::_border($size, $color));
     $image = '"' . $this->image_temp . '"';
     $color = $this->create_color($color, 100);
     $command = $image . ' -compose copy -bordercolor ' . $color . ' -border ' . $size . 'x' . $size . ' ' . $image;
     $this->exec('convert', $command);
     $this->clear_sizes();
 }
Exemplo n.º 2
0
 protected function _border($size, $color = null)
 {
     extract(parent::_border($size, $color));
     $this->imagick->borderImage($this->create_color($color, 100), $size, $size);
 }
Exemplo n.º 3
0
 protected function _border($size, $color = null)
 {
     extract(parent::_border($size, $color));
     $sizes = $this->sizes();
     $image = $this->create_transparent_image($sizes->width + $size * 2, $sizes->height + $size * 2);
     $color = $this->create_color($image, $color, 100);
     $this->image_merge($image, $this->image_data, $size, $size, 100);
     for ($s = 0; $s < $size; $s++) {
         imagerectangle($image, $s, $s, $sizes->width + $size * 2 - $s - 1, $sizes->height + $size * 2 - $s - 1, $color);
     }
     $this->image_data = $image;
 }