Public Member Functions | |
__construct ($width, $height) | |
getTextColors () | |
getBackgroundColors () | |
getWidth () | |
getHeight () | |
getImageId () | |
getFont () | |
setFont ($font) | |
setTextDrawer (TextDrawer $drawer) | |
| |
setBackgroundDrawer (BackgroundDrawer $drawer) | |
| |
getCodeGenerator () | |
getColorIdentifier (Color $color) | |
getOneCharacterColor () | |
toImage (ImageType $imageType) | |
| |
Static Public Member Functions | |
static | getCode () |
Public Attributes | |
const | SESSION_LABEL = 'turning_number' |
Protected Member Functions | |
setCode ($code) | |
| |
Private Member Functions | |
init () | |
| |
drawBackGround () | |
| |
outputImage (ImageType $imageType) | |
| |
Private Attributes | |
$textColors = null | |
$backgroundColors = null | |
$font = null | |
$imageId = null | |
$width = null | |
$height = null | |
$generator = null | |
$drawer = null | |
$backgroundDrawer = null |
Definition at line 16 of file TuringImage.class.php.
TuringImage::__construct | ( | $ | width, | |
$ | height | |||
) |
static TuringImage::getCode | ( | ) | [static] |
Definition at line 35 of file TuringImage.class.php.
References Session::get().
TuringImage::getTextColors | ( | ) |
Definition at line 50 of file TuringImage.class.php.
TuringImage::getBackgroundColors | ( | ) |
Definition at line 55 of file TuringImage.class.php.
TuringImage::getWidth | ( | ) |
TuringImage::getHeight | ( | ) |
TuringImage::getImageId | ( | ) |
TuringImage::getFont | ( | ) |
Definition at line 75 of file TuringImage.class.php.
TuringImage::setFont | ( | $ | font | ) |
TuringImage::setTextDrawer | ( | TextDrawer $ | drawer | ) |
Definition at line 90 of file TuringImage.class.php.
References Drawer::setTuringImage().
TuringImage::setBackgroundDrawer | ( | BackgroundDrawer $ | drawer | ) |
Definition at line 101 of file TuringImage.class.php.
References Drawer::setTuringImage().
TuringImage::getCodeGenerator | ( | ) |
Definition at line 109 of file TuringImage.class.php.
TuringImage::getColorIdentifier | ( | Color $ | color | ) |
Definition at line 114 of file TuringImage.class.php.
Referenced by drawBackGround(), getOneCharacterColor(), and init().
TuringImage::getOneCharacterColor | ( | ) |
Definition at line 136 of file TuringImage.class.php.
References getColorIdentifier().
TuringImage::toImage | ( | ImageType $ | imageType | ) |
Definition at line 146 of file TuringImage.class.php.
References drawBackGround(), getImageId(), init(), outputImage(), and setCode().
TuringImage::setCode | ( | $ | code | ) | [protected] |
Definition at line 171 of file TuringImage.class.php.
References Session::assign().
Referenced by toImage().
TuringImage::init | ( | ) | [private] |
Definition at line 181 of file TuringImage.class.php.
References $imageId, getColorIdentifier(), getHeight(), and getWidth().
Referenced by toImage().
TuringImage::drawBackGround | ( | ) | [private] |
Definition at line 194 of file TuringImage.class.php.
References getColorIdentifier(), getHeight(), and getWidth().
Referenced by toImage().
TuringImage::outputImage | ( | ImageType $ | imageType | ) | [private] |
Definition at line 222 of file TuringImage.class.php.
References ImageType::GIF, ImageType::JPEG, ImageType::PNG, and ImageType::WBMP.
Referenced by toImage().
const TuringImage::SESSION_LABEL = 'turning_number' |
Definition at line 18 of file TuringImage.class.php.
TuringImage::$textColors = null [private] |
Definition at line 20 of file TuringImage.class.php.
TuringImage::$backgroundColors = null [private] |
Definition at line 21 of file TuringImage.class.php.
TuringImage::$font = null [private] |
TuringImage::$imageId = null [private] |
TuringImage::$width = null [private] |
TuringImage::$height = null [private] |
TuringImage::$generator = null [private] |
Definition at line 30 of file TuringImage.class.php.
TuringImage::$drawer = null [private] |
Definition at line 32 of file TuringImage.class.php.
TuringImage::$backgroundDrawer = null [private] |
Definition at line 33 of file TuringImage.class.php.