From d0a9b9a03fc7ae74ef8a64593ac6b592526ec4d5 Mon Sep 17 00:00:00 2001 From: pp Date: Wed, 19 May 2004 04:59:31 +0000 Subject: - initial import git-svn-id: https://siedziba.pl:790/svn/repos/php-imlib/trunk@7 455248ca-bdda-0310-9134-f4ebb693071a --- phpdoc/ImlibText.html | 754 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 754 insertions(+) create mode 100644 phpdoc/ImlibText.html (limited to 'phpdoc/ImlibText.html') diff --git a/phpdoc/ImlibText.html b/phpdoc/ImlibText.html new file mode 100644 index 0000000..f979a90 --- /dev/null +++ b/phpdoc/ImlibText.html @@ -0,0 +1,754 @@ + + + + + PHP Imlib2 Classes - Imlib - Class: ImlibText + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + +
PackageindexClasstreesModulegroupsElementlistReportXML Files
+

+ File: /home/matt/src/cvs/imlib/docs/class.ImlibText.php +
PHP Imlib2 Classes - Imlib
+

ImlibText

+ ImlibColor
   |
  +-- ImlibText
+

+ Does everything relevant to text drawing +

+   +

+

public class ImlibText extends ImlibColor

+ Does everything relevant to text drawing +
+ The routine for dealing text is to load a font, set an image to draw on,and draw a string. +

+ + + + + + + + + +
AuthorsMatt McClanahan <cardinal@dodds.net>
Version0.3
+

 

+ + + + + + + +

Methods inherited from ImlibColor

imlibcolor, get_color, get_color_array, set_color, set_color_array
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Method Summary

void

ImlibText()

ImlibText constructor
bool

draw(int $x, int $y, string $str, [ string $dir ])

Draw a text string onto the current image
bool

free()

Free the currently loaded font
integer

get_image()

Get the current image resource id#
bool

get_size(string $str, int &$w, int &$h, [ string $dir ])

Get the width and height of a given string if it were drawn
bool

load(string $path, string $font, int $size)

Load a font
void

set_image(int $im)

Set the image resource id# to draw on
+
+ + + + + + + +

Fields inherited from ImlibColor

$color
+
+ + + + + + + + + + + + + + + +

Private Field Summary

unknown

$fnt

Resource id# of the currently loaded font
unknown

$im

Resource id# of the image to draw on
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Method Details

ImlibText

+ public void ImlibText( )

+

  + ImlibText constructor +
+ +

+ +

Returnsvoid


draw

+ public bool draw( int $x, int $y, string $str, [ string $dir ] )

+

  + Draw a text string onto the current image +
+ +

+ +

Parameter
+ + + + + + + + + + +
int$x
coordinate of the upper left corner of the string
+
+ + + + + + + + + + +
int$y
coordinate of the upper left corner of the string
+
+ + + + + + + + + + +
string$str
string to draw
+
+ + + + + + + + + + +
string$dir= >>IMLIB_TEXT_TO_RIGHT<<
of the text
+
Returnsbool

False if no font is loaded


free

+ public bool free( )

+

  + Free the currently loaded font +
+ +

+ +

Returnsbool

False if no font is loaded


get_image

+ public integer get_image( )

+

  + Get the current image resource id# +
+ +

+ +

Returnsinteger

Image resource id#


get_size

+ public bool get_size( string $str, int &$w, int &$h, [ string $dir ] )

+

  + Get the width and height of a given string if it were drawn +
+ +

+ +

Parameter
+ + + + + + + + + + +
string$str
to measure
+
+ + + + + + + + + + +
int&$w
Width the string would be
+
+ + + + + + + + + + +
int&$h
Height the string would be
+
+ + + + + + + + + + +
string$dir= >>IMLIB_TEXT_TO_RIGHT<<
to measure the string
+
Returnsbool

False if no font is loaded


load

+ public bool load( string $path, string $font, int $size )

+

  + Load a font +
+ If the font is in the font path, it can be referred to by font name,and the path does not need to be specified. Otherwise, it must bereferred to by filename. +

+ +

Parameter
+ + + + + + + + + + +
string$path
, or current directory if passed blank
+
+ + + + + + + + + + +
string$font
name
+
+ + + + + + + + + + +
int$size
size
+
Returnsbool

False if no font is loaded


set_image

+ public void set_image( int $im )

+

  + Set the image resource id# to draw on +
+ +

+ +

Parameter
+ + + + + + + + + + +
int$im
resource id#
+
Returnsvoid


+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Private Field Details

$fnt

+ private unknown $fnt +

+ >><< +

+ Resource id# of the currently loaded font +
+ +


$im

+ private unknown $im +

+ >><< +

+ Resource id# of the image to draw on +
+ +


+

+ + + + + + + + + +
PackageindexClasstreesModulegroupsElementlistReportXML Files
+
PHPDoc 1.0beta
+ + + -- cgit v1.2.3