PHP Class Grafika\Gd\DrawingObject\CubicBezier

Inheritance: extends Grafika\DrawingObject\CubicBezier, implements Grafika\DrawingObjectInterface
Exibir arquivo 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, $x3, $y3 )
plotCubicSegment ( $gd, $x0, $y0, $x1, $y1, $x2, $y2, $x3, $y3 )
plotLine ( $gd, $x0, $y0, $x1, $y1 )
plotQuadSegment ( $gd, $x0, $y0, $x1, $y1, $x2, $y2 )
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, $x3, $y3 )

plotCubicSegment() protected method

protected plotCubicSegment ( $gd, $x0, $y0, $x1, $y1, $x2, $y2, $x3, $y3 )

plotLine() protected method

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

plotQuadSegment() protected method

protected plotQuadSegment ( $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