src/Manipulators/Border.php
public function runOverlay(Image $image, $width, $color)
    {
        return $image->rectangle(
            $width / 2,
            $width / 2,
            $image->width() - ($width / 2),
            $image->height() - ($width / 2),
            function ($draw) use ($width, $color) {
                $draw->border($width, $color);
            }
        );
    }
public function runOverlay(Image $image, $width, $color)
    {
        return $image->rectangle(
            $width / 2,
            $width / 2,
            $image->width() - ($width / 2),
            $image->height() - ($width / 2),
            function ($draw) use ($width, $color) {
                $draw->border($width, $color);
            }
        );
    }
public function runOverlay ( Image $ image , $ width , $ color ) { return $ image -> rectangle ( $ width / 2 , $ width / 2 , $ image -> width ( ) - ( $ width / 2 ) , $ image -> height ( ) - ( $ width / 2 ) , function ( $ draw ) use ( $ width , $ color ) { $ draw -> border ( $ width , $ color ) ; } ) ; }
Run the overlay border method.
@param  Image  $image The source image.
@param  double $width The border width.
@param  string $color The border color.
@return Image  The manipulated image.
Run the overlay border method .