summaryrefslogtreecommitdiffhomepage
path: root/examples/text.php
diff options
context:
space:
mode:
authorpp <pp@455248ca-bdda-0310-9134-f4ebb693071a>2004-05-19 04:59:31 +0000
committerpp <pp@455248ca-bdda-0310-9134-f4ebb693071a>2004-05-19 04:59:31 +0000
commitd0a9b9a03fc7ae74ef8a64593ac6b592526ec4d5 (patch)
treee03d2a7fac8c7619f1286545f717ef7ee3866cd6 /examples/text.php
- initial import
git-svn-id: https://siedziba.pl:790/svn/repos/php-imlib/trunk@7 455248ca-bdda-0310-9134-f4ebb693071a
Diffstat (limited to 'examples/text.php')
-rw-r--r--examples/text.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/text.php b/examples/text.php
new file mode 100644
index 0000000..d23def8
--- /dev/null
+++ b/examples/text.php
@@ -0,0 +1,17 @@
+<?php
+
+/*
+ * This will draw a string of text. Quite thrilling, I tell you.
+ */
+
+Header('Content-type: image/png');
+
+$fnt = imlib_load_font('./ARIAL/25');
+$im = imlib_create_image(300,50);
+imlib_text_draw($im,$fnt,5,5,'Text String in Arial.',IMLIB_TEXT_TO_RIGHT,
+ 255,255,255,255);
+imlib_dump_image($im);
+imlib_free_font($fnt);
+imlib_free_image($im);
+
+?>