\Intervention\ImageAbstractShape

Summary

Methods
Properties
Constants
applyToImage()
background()
border()
hasBorder()
$background
$border_color
$border_width
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$background

$background : string

Background color of shape

Type

string

$border_color

$border_color : string

Border color of current shape

Type

string

$border_width

$border_width : int

Border width of shape

Type

int

Methods

applyToImage()

applyToImage(\Intervention\Image\Image  $image, int  $posx, int  $posy) : bool

Draws shape to given image on given position

Parameters

\Intervention\Image\Image $image
int $posx
int $posy

Returns

bool —

background()

background(mixed  $color) : void

Set text to be written

Parameters

mixed $color

border()

border(int  $width, string  $color = null) : void

Set border width and color of current shape

Parameters

int $width
string $color

hasBorder()

hasBorder() : bool

Determines if current shape has border

Returns

bool —