HumHub Documentation (unofficial)

AlphaBlendingAwareDrawerInterface extends DrawerInterface

Interface for the drawers that support configuring the alpha blending.

Table of Contents

Methods

arc()  : $this
Draws an arc on a starting at a given x, y coordinates under a given start and end angles.
chord()  : $this
Same as arc, but also connects end points with a straight line.
circle()  : $this
Draws and circle with center at the given x, y coordinates, and given radius.
dot()  : $this
Places a one pixel point at specific coordinates and fills it with specified color.
ellipse()  : $this
Draws and ellipse with center at the given x, y coordinates, and given width and height.
getAlphaBlending()  : bool
Is the alpha blending activated?
line()  : $this
Draws a line from start(x, y) to end(x, y) coordinates.
pieSlice()  : $this
Same as arc, but connects end points and the center.
polygon()  : $this
Draws a polygon using array of x, y coordinates. Must contain at least three coordinates.
rectangle()  : $this
Draws a rectangle from left, top(x, y) to right, bottom(x, y) coordinates.
setAlphaBlending()  : $this
Enable/disable the alpha blending.
text()  : $this
Annotates image with specified text at a given position starting on the top left of the final text box.
withAlphaBlending()  : static
Create a new instance of this drawer with the specified alpha blending value.

Methods

setAlphaBlending()

Enable/disable the alpha blending.

public setAlphaBlending(bool $value) : $this
Parameters
$value : bool
Return values
$this

text()

Annotates image with specified text at a given position starting on the top left of the final text box.

public text(string $string, AbstractFont $font, PointInterface $position[, int $angle = 0 ][, int $width = null ]) : $this

The rotation is done CW

Parameters
$string : string
$font : AbstractFont
$position : PointInterface
$angle : int = 0
$width : int = null
Tags
throws
RuntimeException
Return values
$this

withAlphaBlending()

Create a new instance of this drawer with the specified alpha blending value.

public withAlphaBlending(bool $value) : static
Parameters
$value : bool
Return values
static

        
On this page

Search results