note 105957 added to function.imagerotate
| From: | SamYong-hellclanneratlivedotcom at osu1 dot php dot net | Date: | Wed, 28 Sep 2011 01:20:37 +0000 |
| Subject: | note 105957 added to function.imagerotate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-183496@lists.php.net to get a copy of this message | ||
Note that the image resource returned from the imagerotate() function is an entirely different image
resource from your original one.
<?php
$res = imagecreatetruecolor(100, 200);
$res2 = imagerotate($res, 90, 0);
var_dump($res, $res2);
?>
This will output:
resource(2, gd)
resource(3, gd)
----
Server IP: 69.147.83.197
Probable Submitter: 218.186.18.235 (proxied: 116.88.248.164)
----
Manual Page -- http://www.php.net/manual/en/function.imagerotate.php
Edit -- https://master.php.net/note/edit/105957
Del: integrated -- https://master.php.net/note/delete/105957/integrated
Del: useless -- https://master.php.net/note/delete/105957/useless
Del: bad code -- https://master.php.net/note/delete/105957/bad+code
Del: spam -- https://master.php.net/note/delete/105957/spam
Del: non-english -- https://master.php.net/note/delete/105957/non-english
Del: in docs -- https://master.php.net/note/delete/105957/in+docs
Del: other reasons-- https://master.php.net/note/delete/105957
Reject -- https://master.php.net/note/reject/105957
Search -- https://master.php.net/manage/user-notes.php