static function onImage($string, $image, $fontName, $x = 0, $y = 0, $size = 10, $defaultColor = '000')
    {
        if ($size <= 5)
            self::onImageQuality($string, $image, $fontName, $x, $y, $size, $defaultColor, 3);
        else if ($size <= 10)
            self::onImageQuality($string, $image, $fontName, $x, $y, $size, $defaultColor, 2);
        else if ($size <= 20)
            self::onImageQuality($string, $image, $fontName, $x, $y, $size, $defaultColor, 1);
        else
            self::onImageFast($string, $image, $fontName, $x, $y, $size, $defaultColor);
    }
static function onImage($string, $image, $fontName, $x = 0, $y = 0, $size = 10, $defaultColor = '000')
    {
        if ($size <= 5)
            self::onImageQuality($string, $image, $fontName, $x, $y, $size, $defaultColor, 3);
        else if ($size <= 10)
            self::onImageQuality($string, $image, $fontName, $x, $y, $size, $defaultColor, 2);
        else if ($size <= 20)
            self::onImageQuality($string, $image, $fontName, $x, $y, $size, $defaultColor, 1);
        else
            self::onImageFast($string, $image, $fontName, $x, $y, $size, $defaultColor);
    }
static function onImage ( $ string , $ image , $ fontName , $ x = 0 , $ y = 0 , $ size = 10 , $ defaultColor = '000' ) { if ( $ size <= 5 ) self :: onImageQuality ( $ string , $ image , $ fontName , $ x , $ y , $ size , $ defaultColor , 3 ) ; else if ( $ size <= 10 ) self :: onImageQuality ( $ string , $ image , $ fontName , $ x , $ y , $ size , $ defaultColor , 2 ) ; else if ( $ size <= 20 ) self :: onImageQuality ( $ string , $ image , $ fontName , $ x , $ y , $ size , $ defaultColor , 1 ) ; else self :: onImageFast ( $ string , $ image , $ fontName , $ x , $ y , $ size , $ defaultColor ) ; }
Draw a string with on an image, method will be choose depending on the size wanted
@param string $string The style-coded string to draw
@param imageResource $image The image to draw on
@param string $fontName The TTF font to use, which has been declared previously
@param int $x X position
@param int $y Y position
@param int $size Font size
@param string $defaultColor Default text color in 3 or 6 hexadecimal characters
Draw a string with on an image method will be choose depending on the size wanted