File: text.php

package info (click to toggle)
php-imlib 0.7-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,020 kB
  • ctags: 817
  • sloc: php: 2,464; ansic: 1,324; xml: 94; makefile: 67; sh: 12
file content (22 lines) | stat: -rw-r--r-- 484 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

// If you compile php_imlib as a self-contained extension, you'll need to
// load it here.

//dl('imlib.so');

/*
 * This will draw a string of text.  Quite thrilling, I tell you.
 */

Header('Content-type: image/png');

$fnt = imlib_load_font('./Vera/25');
$im = imlib_create_image(300,50);
imlib_text_draw($im,$fnt,5,5,'Text String in Vera Sans.',IMLIB_TEXT_TO_RIGHT,
                255,255,255,255);
imlib_dump_image($im);
imlib_free_font($fnt);
imlib_free_image($im);

?>