downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

HaruPage::measureText> <HaruPage::getWordSpace
[edit] Last updated: Fri, 24 May 2013

view this page in

HaruPage::lineTo

(PECL haru >= 0.0.1)

HaruPage::lineToTrace une ligne depuis le point courant vers le point spécifié

Description

bool HaruPage::lineTo ( float $x , float $y )

Trace une ligne depuis le point courant vers le point spécifié.

Liste de paramètres

x

y

Valeurs de retour

Retourne TRUE en cas de succès.

Erreurs / Exceptions

Émet une exception HaruException en cas d'erreur.

Voir aussi



add a note add a note User Contributed Notes HaruPage::lineTo - [1 notes]
up
0
aku at syuaa dot net
1 year ago
Here i show a simple example for this Line to.

<?php
$doc
=new HaruDoc;

$page=$doc->addPage();
$page->setSize(HaruPage::SIZE_A4, HaruPage::PORTRAIT);

$page->setRGBStroke(0,0,0); // Set color to black
$page->setRGBFill(1,1,1); // Set fill to 100% for each rgb color
$page->moveTo(60, 100); // Move cursor to x 60, y 100
$page->lineTo(60,500); // Create line from x 60, y100 to x60, y500
$page->fillStroke();

//Output
header('Content-Type: application/pdf');
$doc->output();
?>

 
show source | credits | sitemap | contact | advertising | mirror sites