\Intervention\Image\Imagick\ShapesLineShape

Summary

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

$x

$x : int

Starting point x-coordinate of line

Type

int

$y

$y : int

Starting point y-coordinate of line

Type

int

$color

$color : string

Color of line

Type

string

$width

$width : int

Width of line in pixels

Type

int

Methods

applyToImage()

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

Draw current instance of line to given endpoint 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  $x = null, int  $y = null) : mixed

Create new line shape instance

Parameters

int $x
int $y

Returns

mixed —

color()

color(string  $color) : void

Set current line color

Parameters

string $color

width()

width(int  $width) : void

Set current line width in pixels

Parameters

int $width