\Intervention\Image\Imagick\ShapesEllipseShape

Summary

Methods
Properties
Constants
applyToImage()
background()
border()
hasBorder()
__construct()
$background
$border_color
$border_width
$width
$height
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

$width

$width : int

Width of ellipse in pixels

Type

int

$height

$height : int

Height of ellipse in pixels

Type

int

Methods

applyToImage()

applyToImage(\Intervention\Image\Image  $image, int  $x, int  $y) : bool

Draw ellipse instance on given image

Parameters

\Intervention\Image\Image $image
int $x
int $y

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 —

__construct()

__construct(int  $width = null, int  $height = null) : mixed

Create new ellipse instance

Parameters

int $width
int $height

Returns

mixed —