略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: imagesy

2024-04-27

imagesy

(PHP 4, PHP 5, PHP 7, PHP 8)

imagesy取得图像高度

说明

imagesy(resource $image): int

imagesy() 返回 image 所代表的图像的高度。

示例 #1 使用 imagesy()

<?php

// create a 300*200 image
$img imagecreatetruecolor(300200);

echo 
imagesy($img); // 200

?>

参见 imagecreatetruecolor()getimagesize()imagesx()

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.imagesy.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3