PHP Class Grafika\Gd\DrawingObject\QuadraticBezier

Inheritance: extends Grafika\DrawingObject\QuadraticBezier, implements Grafika\DrawingObjectInterface
Show file Open project: kosinix/grafika

Public Methods

Method Description
draw ( Grafika\ImageInterface $image ) : Image

Protected Methods

Method Description
plot ( $gd, $x0, $y0, $x1, $y1, $x2, $y2 )
plotLine ( $gd, $x0, $y0, $x1, $y1 )
plotSegment ( $gd, $x0, $y0, $x1, $y1, $x2, $y2 ) Draw an limited anti-aliased quadratic Bezier segment.
setPixel ( resource $gd, integer $x, integer $y, float $ar )

Method Details

draw() public method

public draw ( Grafika\ImageInterface $image ) : Image
$image Grafika\ImageInterface
return Grafika\Gd\Image

plot() protected method

protected plot ( $gd, $x0, $y0, $x1, $y1, $x2, $y2 )

plotLine() protected method

protected plotLine ( $gd, $x0, $y0, $x1, $y1 )

plotSegment() protected method

Draw an limited anti-aliased quadratic Bezier segment.
protected plotSegment ( $gd, $x0, $y0, $x1, $y1, $x2, $y2 )
$gd
$x0
$y0
$x1
$y1
$x2
$y2

setPixel() protected method

protected setPixel ( resource $gd, integer $x, integer $y, float $ar )
$gd resource
$x integer
$y integer
$ar float Alpha ratio