IMAGESY(3) 1 IMAGESY(3)
imagesy - Get image height
SYNOPSIS
int imagesy (resource $image)
DESCRIPTION
Returns the height of the given $image resource.
PARAMETERS
o $
image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3).
RETURN VALUES
Return the height of the $image or FALSE on errors.
EXAMPLES
Example #1
Using imagesy(3)
<?php
// create a 300*200 image
$img = imagecreatetruecolor(300, 200);
echo imagesy($img); // 200
?>
SEE ALSO
imagecreatetruecolor(3), getimagesize(3), imagesx(3).
PHP Documentation Group IMAGESY(3)