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

search for in the

HaruFont> <HaruPage::textOut
[edit] Last updated: Fri, 25 May 2012

view this page in

HaruPage::textRect

(PECL haru >= 0.0.1)

HaruPage::textRect指定した領域内にテキストを表示する

説明

bool HaruPage::textRect ( float $left , float $top , float $right , float $bottom , string $text [, int $align = HaruPage::TALIGN_LEFT ] )

指定した領域内にテキストを表示します。

パラメータ

left

テキストの範囲の左端。

top

テキストの範囲の上端。

right

テキストの範囲の右端。

bottom

テキストの範囲の下端。

text

表示させたいテキスト。

align

テキストの配置。次のいずれかの値でなければなりません。

  • HaruPage::TALIGN_LEFT
  • HaruPage::TALIGN_RIGHT
  • HaruPage::TALIGN_CENTER
  • HaruPage::TALIGN_JUSTIFY

返り値

成功した場合に TRUE を返します。

エラー / 例外

エラー時に HaruException をスローします。

参考



add a note add a note User Contributed Notes HaruPage::textRect
There are no user contributed notes for this page.

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