Cheetah
plugins
intervention-image
Intervention
Image
AbstractShape.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Intervention\Image
;
4
5
abstract
class
AbstractShape
6
{
12
public
$background
;
13
19
public
$border_color
;
20
26
public
$border_width
= 0;
27
36
abstract
public
function
applyToImage
(
Image
$image, $posx = 0, $posy = 0);
37
44
public
function
background
($color)
45
{
46
$this->
background
= $color;
47
}
48
56
public
function
border
($width, $color =
null
)
57
{
58
$this->border_width = is_numeric($width) ? intval($width) : 0;
59
$this->border_color = is_null($color) ?
'#000000'
: $color;
60
}
61
67
public
function
hasBorder
()
68
{
69
return
($this->border_width >= 1);
70
}
71
}
Intervention\Image\AbstractShape\border
border($width, $color=null)
Definition:
AbstractShape.php:56
php
Intervention\Image\AbstractShape
Definition:
AbstractShape.php:6
Intervention\Image\Image
Definition:
Image.php:50
Intervention\Image\AbstractShape\$border_width
$border_width
Definition:
AbstractShape.php:26
Intervention\Image\AbstractShape\$border_color
$border_color
Definition:
AbstractShape.php:19
Intervention\Image\AbstractShape\applyToImage
applyToImage(Image $image, $posx=0, $posy=0)
Intervention\Image\AbstractShape\$background
$background
Definition:
AbstractShape.php:12
Intervention\Image\AbstractShape\hasBorder
hasBorder()
Definition:
AbstractShape.php:67
Intervention\Image\AbstractShape\background
background($color)
Definition:
AbstractShape.php:44
Intervention\Image
Definition:
AbstractColor.php:3
Generated by
1.8.20