imagesy

(PHP 4, PHP 5)

imagesyGet image height

說明

int imagesy ( resource $image )

Returns the height of the given image resource.

參數

image

由影像建立函式(例如imagecreatetruecolor())回傳的影像資源。

回傳值

Return the height of the image or FALSE on errors.

範例

Example #1 Using imagesy()

<?php

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

echo 
imagesy($img); // 200

?>

參見

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top