Forum und email

cpdf_curveto

(PHP 4, PHP 5 <= 5.0.5)

cpdf_curveto — Zeichnet eine Kurve

Beschreibung

bool cpdf_curveto ( int $PDF-Dokument , float $x1 , float $y1 , float $x2 , float $y2 , float $x3 , float $y3 [, int $Modus ] )

Zeichnet eine Bezier-Kurve vom aktuellen Punkt zum Punkt (x3 , y3 ), wobei (x1 , y1 ) und (x2 , y2 ) als Kontrollpunkte verwendet werden.

Parameter Liste

pdf_document

The document handle, returned by cpdf_open().

x1

Die x-Koordinate des ersten Kontrollpunktes

y1

Die y-Koordinate des ersten Kontrollpunktes

x2

Die x-Koordinate des zweiten Kontrollpunktes

y2

Die y-Koordinate des zweiten Kontrollpunktes

x3

Die x-Koordinate des Zielpunktes

y3

Die y-Koordinate des Zielpunktes

mode

The optional parameter mode determines the unit length. If it is 0 or omitted the default unit as specified for the page is used. Otherwise the coordinates are measured in postscript points disregarding the current unit.

Rückgabewerte

Gibt bei Erfolg TRUE zurück, im Fehlerfall FALSE.