hallo,
ich hab mir eine mini-funktion geschrieben die text in einem bild anzeigt.
	
wie müsste ich die funktion ergänzen, damit der text in arial und grösse 11px ausgegeben wird?
lg, malaga
					ich hab mir eine mini-funktion geschrieben die text in einem bild anzeigt.
PHP Code:
	
	
function image($_text){
    
    $_width     = 250;
    $_height     = 16;
    
    $_pic     = ImageCreate($_width, $_height);
    $_bg     = ImageColorAllocate($_pic, 255, 255, 255);
    $_color    = ImageColorAllocate($_pic, 0, 0, 0);
    
    ImageFilledRectangle($_pic, 0, 0, $_width, $_height, $_bg);
    ImageString($_pic, 2, 2, 1, $_text, $_color);
    
    Header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    Header("Content-type: image/png");
    
    ImagePNG($_pic);
    ImageDestroy($_pic);
} 
lg, malaga
 
          

Comment