jjzjj

PHP: 图像 ftbbox

PHPimageftbbox中文本边界框的应用是什么?在manual的例子中,它用于确定imagefttext函数的坐标。有必要吗?也许我在这里遗漏了一些东西。...//Firstwecreateourboundingbox$bbox=imageftbbox(10,0,$font,'ThePHPDocumentationGroup');//ThisisourcordinatesforXandY$x=$bbox[0]+(imagesx($im)/2)-($bbox[4]/2)-5;$y=$bbox[1]+(imagesy($im)/2)-($bbox[5]/2)-5;imagefttex