pdf_translate
(PHP 3>= 3.0.6, PHP 4 )
pdf_translate -- Sets origin of coordinate system
Popis
void
pdf_translate ( int pdf document, double x-coor, double y-coor)
Funkce pdf_translate() function sets the origin of
coordinate system to the point (x-coor,
y-coor) relativ the current origin.
The following example draws
a line from (0, 0) to (200, 200) relative to the initial coordinate
system. You have to set the current point after
pdf_translate() and before you start drawing
more objects.
Příklad 1. Translation <?php pdf_moveto($pdf, 0, 0);
pdf_lineto($pdf, 100, 100);
pdf_stroke($pdf);
pdf_translate($pdf, 100, 100);
pdf_moveto($pdf, 0, 0);
pdf_lineto($pdf, 100, 100);
pdf_stroke($pdf);
?> |
|