GD and Image Функции
PHP Manual

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

?>

Вж. също


GD and Image Функции
PHP Manual