Forum und email

imagesx

(PHP 4, PHP 5)

imagesx — Get image width

설명

int imagesx ( resource $image )

Returns the width of the given image resource.

매개변수

font

내장 글꼴 1, 2, 3, 4, 5(큰 숫자가 큰 글꼴)나 imageloadfont()로 등록한 글꼴 식별자를 사용할 수 있습니다.

반환값

Return the width of the image or FALSE on errors.

예제

Example#1 Using imagesx()

<?php

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

echo 
imagesx($img); // 300

?>