Cheetah
Public Member Functions | Public Attributes | List of all members
Intervention\Image\AbstractShape Class Reference
Inheritance diagram for Intervention\Image\AbstractShape:
Intervention\Image\Gd\Shapes\EllipseShape Intervention\Image\Gd\Shapes\LineShape Intervention\Image\Gd\Shapes\PolygonShape Intervention\Image\Gd\Shapes\RectangleShape Intervention\Image\Imagick\Shapes\EllipseShape Intervention\Image\Imagick\Shapes\LineShape Intervention\Image\Imagick\Shapes\PolygonShape Intervention\Image\Imagick\Shapes\RectangleShape

Public Member Functions

 applyToImage (Image $image, $posx=0, $posy=0)
 
 background ($color)
 
 border ($width, $color=null)
 
 hasBorder ()
 

Public Attributes

 $background
 
 $border_color
 
 $border_width = 0
 

Detailed Description

Definition at line 5 of file AbstractShape.php.

Member Function Documentation

◆ applyToImage()

Intervention\Image\AbstractShape::applyToImage ( Image  $image,
  $posx = 0,
  $posy = 0 
)
abstract

◆ background()

Intervention\Image\AbstractShape::background (   $color)

Set text to be written

Parameters
string$text
Returns
void

Definition at line 44 of file AbstractShape.php.

◆ border()

Intervention\Image\AbstractShape::border (   $width,
  $color = null 
)

Set border width and color of current shape

Parameters
integer$width
string$color
Returns
void

Definition at line 56 of file AbstractShape.php.

◆ hasBorder()

Intervention\Image\AbstractShape::hasBorder ( )

Determines if current shape has border

Returns
boolean

Definition at line 67 of file AbstractShape.php.

Member Data Documentation

◆ $background

Intervention\Image\AbstractShape::$background

Definition at line 12 of file AbstractShape.php.

◆ $border_color

Intervention\Image\AbstractShape::$border_color

Definition at line 19 of file AbstractShape.php.

◆ $border_width

Intervention\Image\AbstractShape::$border_width = 0

Definition at line 26 of file AbstractShape.php.


The documentation for this class was generated from the following file: