class Rectangle extends Rectangle implements DrawingObjectInterface

Class Rectangle

Methods

__construct(int $width, int $height, array $pos, int $borderSize, Color|null $borderColor, Color|null $fillColor)

Creates a rectangle.

from Rectangle
int
getWidth()

No description

from Rectangle
int
getHeight()

No description

from Rectangle
array
getPos()

No description

from Rectangle
int
getBorderSize()

No description

from Rectangle
getFillColor()

No description

from Rectangle
getBorderColor()

No description

from Rectangle
draw(ImageInterface $image)

No description

Details

in Rectangle at line line 54
__construct(int $width, int $height, array $pos, int $borderSize, Color|null $borderColor, Color|null $fillColor)

Creates a rectangle.

Parameters

int $width Width of rectangle in pixels.
int $height Height in pixels.
array $pos Array containing int X and int Y position. X is the distance in pixels from the left of the canvass to the left of the shape. Y is the distance from the top of the canvass to the top of the shape.
int $borderSize Size of the border in pixels.
Color|null $borderColor Border color.
Color|null $fillColor Fill color.

in Rectangle at line line 66
int getWidth()

Return Value

int

in Rectangle at line line 74
int getHeight()

Return Value

int

in Rectangle at line line 82
array getPos()

Return Value

array

in Rectangle at line line 90
int getBorderSize()

Return Value

int

in Rectangle at line line 98
Color getFillColor()

Return Value

Color

in Rectangle at line line 106
Color getBorderColor()

Return Value

Color

at line line 13
ImageInterface draw(ImageInterface $image)

Parameters

ImageInterface $image

Return Value

ImageInterface