What are the x and Y parameters in the PHP imagettftext () function?

Source: Internet
Author: User
On the internet, there is said that the upper left corner is located on the left, there is said to be the lower right corner of the coordinates, the manual said:

X
The coordinates represented by X, y define the basic point of the first character (presumably the lower-left corner of the character). This differs from imagestring (), where x, y defines the upper-left corner of the first character. For example, "top left" is 0, 0.

Y
The Y-coordinate. It sets the position of the font baseline, not the bottom of the character.

= =. I tested a few, always feel the wrong way, I have been muddy off. Ask you, what is this x/y exactly?

Attached: imagettftext function

Reply content:

On the internet, there is said that the upper left corner is located on the left, there is said to be the lower right corner of the coordinates, the manual said:

X
The coordinates represented by X, y define the basic point of the first character (presumably the lower-left corner of the character). This differs from imagestring (), where x, y defines the upper-left corner of the first character. For example, "top left" is 0, 0.

Y
The Y-coordinate. It sets the position of the font baseline, not the bottom of the character.

= =. I tested a few, always feel the wrong way, I have been muddy off. Ask you, what is this x/y exactly?

Attached: imagettftext function

  • 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.