Cheetah
plugins
intervention-image
Intervention
Image
Gd
Shapes
CircleShape.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Intervention\Image\Gd\Shapes
;
4
5
use \Intervention\Image\Image;
6
7
class
CircleShape
extends
EllipseShape
8
{
14
public
$diameter
= 100;
15
21
public
function
__construct
(
$diameter
=
null
)
22
{
23
$this->width = is_numeric(
$diameter
) ? intval(
$diameter
) :
$this->diameter
;
24
$this->height = is_numeric(
$diameter
) ? intval(
$diameter
) :
$this->diameter
;
25
$this->diameter = is_numeric(
$diameter
) ? intval(
$diameter
) :
$this->diameter
;
26
}
27
36
public
function
applyToImage
(
Image
$image, $x = 0, $y = 0)
37
{
38
return
parent::applyToImage($image, $x, $y);
39
}
40
}
php
Intervention\Image\Gd\Shapes\EllipseShape
Definition:
EllipseShape.php:9
Intervention\Image\Gd\Shapes
Definition:
CircleShape.php:3
Intervention\Image\Image
Definition:
Image.php:50
Intervention\Image\Gd\Shapes\CircleShape
Definition:
CircleShape.php:8
Intervention\Image\Gd\Shapes\CircleShape\$diameter
$diameter
Definition:
CircleShape.php:14
Intervention\Image\Gd\Shapes\CircleShape\applyToImage
applyToImage(Image $image, $x=0, $y=0)
Definition:
CircleShape.php:36
Intervention\Image\Gd\Shapes\CircleShape\__construct
__construct($diameter=null)
Definition:
CircleShape.php:21
Generated by
1.8.20