imagesy

(PHP 4, PHP 5, PHP 7)

imagesyGet image height

Opis

imagesy ( resource $image ) : int

Returns the height of the given image resource.

Parametry

obraz

Zasób obrazu, zwrócony przez jedną z funkcji tworzących obrazy, taką jak imagecreatetruecolor().

Zwracane wartości

Return the height of the image or FALSE on errors.

Przykłady

Przykład #1 Using imagesy()

<?php

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

echo 
imagesy($img); // 200

?>

Zobacz też:

add a note add a note

User Contributed Notes

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