phpCoreLib2
[ class tree: phpCoreLib2 ] [ index: phpCoreLib2 ] [ all elements ]

Class: DBitmapWriter

Source Location: /Files/Pictures/BitmapFonts/DBitmapWriter.php

Class Overview

DObject
   |
   --DBitmapWriter

Bitmap writer


Variables

Methods


Inherited Constants

Inherited Variables

Inherited Methods

Class: DObject

DObject::__construct()
Constructor
DObject::debug()
Debig
DObject::getClassMembers()
Gets member variables of the instance
DObject::getClassMemberType()
Gets class member type
DObject::getClassMethods()
Gets classes of the class
DObject::getClassName()
Gets class name
DObject::PHPSerialize()
Gets serialized string of the class
DObject::trace()
Trace
DObject::__destruct()
Descructor
DObject::__toString()
Returns String equivalent of the object.

Class Details

[line 17]
Bitmap writer



[ Top ]


Class Variables

$direction =

[line 31]

Direction of the text



Tags:

access:  public

Type:   int


[ Top ]

$font =

[line 24]

Font



Tags:

access:  public

Type:   DBitmapFonts


[ Top ]

$resource =  null

[line 38]

Image GD resource



Tags:

access:  public

Type:   resource


[ Top ]



Class Methods


constructor DBitmapWriter [line 48]

DBitmapWriter DBitmapWriter( [int $align = __ALIGN_CENTER], [int $direction = __DIRECTION_HORIZONTAL])

Constructor



Tags:

access:  public


Parameters:

int   $align  
int   $direction  

[ Top ]

method toFile [line 161]

void toFile( string $fileName, string $format)

Saves to file



Tags:

access:  public


Parameters:

string   $fileName  
string   $format   JPEG, PNG or GIF

[ Top ]

method write [line 76]

void write( string $str, [int $maxWidth = __SIZE_UNLIMITET], [int $maxHeight = __SIZE_UNLIMITET])

Generates the image



Tags:

access:  public


Parameters:

string   $str  
int   $maxWidth  
int   $maxHeight  

[ Top ]

method __toString [line 149]

void __toString( )

Get image



Tags:

access:  public


Overrides DObject::__toString() (Returns String equivalent of the object.)

[ Top ]


Documentation generated on Sat, 17 Apr 2010 22:02:47 +0300 by phpDocumentor 1.4.3