Graphics function Library: Imagepstext

Source: Internet
Author: User
Keywords imagepstext php Chinese function manual graphics function library
Tags aliyun array function function library graphics graphics function library html http

Imagepstext

(PHP3 >= 3.0.9, PHP4 >= 4.0rc1)

Imagepstext---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; use PostScript Type1 font to draw text strings on a graphic

Syntax: array imagepstext (int image, string text, int font, int size, int foreground, int background, int x, int y [, int tightness [, float angle [, int antialias_steps]]]

Description:

Size represents (expressed) pixels.

Foreground is the color of the text to be colored, background is the color that the text will try to fade (fade).

The coordinate x,y will be defined as the origin (or reference point) of the first character (the lower-left corner of the character), unlike imagestring (), where imagestring () is the upper-right corner of the character.

Space allows you to change the default value of the spacing (spaces) in the font, which adds to the standard values and can be negative.

tightness allows you to control the total number of whitespace between two characters, which is added to the standard value and can be negative.

Angle is the degree.

Antialias_steps allows you to control the number of antialiasing text colors, allowing values of 4 and 16.

The parameter space and tightness represent the blank unit of the character, Unit 1 is the 1/1000th of the Em-square.

Parameters space, tightness, angle, and AntiAlias are all non-essential.

The returned array contains the following elements:

0 left Lower x coordinate 1 left lower corner y-coordinate 2 upper right corner x coordinate 3 right corner y-coordinate

Reference: Imagepsbbox ()

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.