首页 >函数列表 >imagepsbbox

imagepsbbox

imagepsbbox

(PHP 4, PHP 5)

imagepsbbox给出一个使用 PostScript Type1 字体的文本方框

说明

array imagepsbbox ( string $text , int $font , int $size [, int $space ], int $tightness , float $angle )

size 以像素表示。

space 可以用来改变字体中默认间距的值。此值将被加到通常的值上,可以为负值。

tightness 可以控制字符之间的间距。此值将被加到通常字符宽度上,可以为负值。

angle 以角度表示。

spacetightness 以字符间距单元表示,1 个单元为 1 em-square 的一千分之一。

spacetightnessangle 参数为可选项。

围绕文本范围的虚拟方框是用从字符度量学中的可用信息来计算的,不幸的是往往和实际上光栅生成的文本的结果有少许不同。如果角度为 0 度,(根据经验)文本在每个方向上都需要多 1 个像素。

Note: 此函数仅在 PHP 编译时指定了 --with-t1lib[=DIR] 时可用。

本函数返回包含有下列单元的数组:

0 左下角的 X 坐标
1 左下角的 Y 坐标
2 右上角的 X 坐标
3 右上角的 Y 坐标

参见 imagepstext()


  • gd_info
  • getimagesize
  • image2wbmp
  • imagealphablending
  • imageantialias
  • imagearc
  • imagechar
  • imagecharup
  • imagecolorallocate
  • imagecolorallocatealpha
  • imagecolorat
  • imagecolorclosest
  • imagecolorclosestalpha
  • imagecolorclosesthwb
  • imagecolordeallocate
  • imagecolorexact
  • imagecolorexactalpha
  • imagecolormatch
  • imagecolorresolve
  • imagecolorresolvealpha
  • imagecolorset
  • imagecolorsforindex
  • imagecolorstotal
  • imagecolortransparent
  • imageconvolution
  • imagecopy
  • imagecopymerge
  • imagecopymergegray
  • imagecopyresampled
  • imagecopyresized
  • imagecreate
  • imagecreatefromgd
  • imagecreatefromgd2
  • imagecreatefromgd2part
  • imagecreatefromgif
  • imagecreatefromjpeg
  • imagecreatefrompng
  • imagecreatefromstring
  • imagecreatefromwbmp
  • imagecreatefromxbm
  • imagecreatefromxpm
  • imagecreatetruecolor
  • imagedashedline
  • imagedestroy
  • imageellipse
  • imagefill
  • imagefilledarc
  • imagefilledellipse
  • imagefilledpolygon
  • imagefilledrectangle
  • imagefilltoborder
  • imagefilter
  • imagefontheight
  • imagefontwidth
  • imageftbbox
  • imagefttext
  • imagegammacorrect
  • imagegd
  • imagegd2
  • imagegif
  • imagegrabscreen
  • imagegrabwindow
  • imageinterlace
  • imageistruecolor
  • imagejpeg
  • imagelayereffect
  • imageline
  • imageloadfont
  • imagepalettecopy
  • imagepng
  • imagepolygon
  • imagepsbbox
  • imagepsencodefont
  • imagepsextendfont
  • imagepsfreefont
  • imagepsloadfont
  • imagepsslantfont
  • imagepstext
  • imagerectangle
  • imagerotate
  • imagesavealpha
  • imagesetbrush
  • imagesetpixel
  • imagesetstyle
  • imagesetthickness
  • imagesettile
  • imagestring
  • imagestringup
  • imagesx
  • imagesy
  • imagetruecolortopalette
  • imagettfbbox
  • imagettftext
  • imagetypes
  • imagewbmp
  • imagexbm
  • image_type_to_extension
  • image_type_to_mime_type
  • iptcembed
  • iptcparse
  • jpeg2wbmp
  • png2wbmp
  • PHP MySQL HTML CSS JavaScript MSSQL AJAX .NET JSP Linux Mac ASP 服务器 SQL jQuery C# C++ java Android IOS oracle MongoDB SQLite wamp 交通频道