Forum und email
imagesy

imagesy

(PHP 3, PHP 4, PHP 5)

imagesy -- Get image height

Opis

int imagesy ( resource image )

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(300, 200);

echo
imagesy($img); // 200

?>