Drawer
class Drawer implements DrawerInterface
Drawer implementation using the Imagick PHP extension.
Methods
No description
Draws an arc on a starting at a given x, y coordinates under a given start and end angles.
Same as arc, but also connects end points with a straight line.
Draws and circle with center at the given x, y coordinates, and given radius.
Draws and ellipse with center at the given x, y coordinates, and given width and height.
Draws a line from start(x, y) to end(x, y) coordinates.
Same as arc, but connects end points and the center.
Places a one pixel point at specific coordinates and fills it with specified color.
Draws a rectangle from left, top(x, y) to right, bottom(x, y) coordinates.
Draws a polygon using array of x, y coordinates. Must contain at least three coordinates.
Annotates image with specified text at a given position starting on the top left of the final text box.
Details
at line 37
__construct(Imagick $imagick)
at line 47
$this
arc(PointInterface $center, BoxInterface $size, int $start, int $end, ColorInterface $color, int $thickness = 1)
Draws an arc on a starting at a given x, y coordinates under a given start and end angles.
at line 86
$this
chord(PointInterface $center, BoxInterface $size, int $start, int $end, ColorInterface $color, bool $fill = false, int $thickness = 1)
Same as arc, but also connects end points with a straight line.
at line 141
$this
circle(PointInterface $center, int $radius, ColorInterface $color, bool $fill = false, int $thickness = 1)
Draws and circle with center at the given x, y coordinates, and given radius.
at line 153
$this
ellipse(PointInterface $center, BoxInterface $size, ColorInterface $color, bool $fill = false, int $thickness = 1)
Draws and ellipse with center at the given x, y coordinates, and given width and height.
at line 203
$this
line(PointInterface $start, PointInterface $end, ColorInterface $color, int $thickness = 1)
Draws a line from start(x, y) to end(x, y) coordinates.
at line 242
$this
pieSlice(PointInterface $center, BoxInterface $size, int $start, int $end, ColorInterface $color, bool $fill = false, int $thickness = 1)
Same as arc, but connects end points and the center.
at line 282
$this
dot(PointInterface $position, ColorInterface $color)
Places a one pixel point at specific coordinates and fills it with specified color.
at line 313
$this
rectangle(PointInterface $leftTop, PointInterface $rightBottom, ColorInterface $color, bool $fill = false, int $thickness = 1)
Draws a rectangle from left, top(x, y) to right, bottom(x, y) coordinates.
at line 356
$this
polygon(array $coordinates, ColorInterface $color, bool $fill = false, int $thickness = 1)
Draws a polygon using array of x, y coordinates. Must contain at least three coordinates.
at line 403
$this
text(string $string, AbstractFont $font, PointInterface $position, int $angle = 0, int $width = null)
Annotates image with specified text at a given position starting on the top left of the final text box.
The rotation is done CW