#47947 [Opn->Csd]: Documentation error for imagerotate()

From: Date: Tue, 21 Apr 2009 01:20:56 +0000
Subject: #47947 [Opn->Csd]: Documentation error for imagerotate()
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2120@lists.php.net to get a copy of this message
 ID:               47947
 Updated by:       fa@php.net
 Reported By:      jonatan dot olofsson at gmail dot com
-Status:           Open
+Status:           Closed
 Bug Type:         Documentation problem
 Operating System: Linux
 PHP Version:      Irrelevant
 New Comment:

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.




Previous Comments:
------------------------------------------------------------------------

[2009-04-10 20:34:04] jonatan dot olofsson at gmail dot com

Description:
------------
Quote from manual for imagerotate(): "and the rotated image is scaled
down so that the whole rotated image fits in the destination image"

The rotated image is in fact not scaled down, but the function returns
an image with dimensions to fit the image (also, the reference to a
destination image seems out of place, since no destination image is
specified)

Reproduce code:
---------------
$wrk = imagecreatetruecolor(100,100);
$wrk = imagerotate($wrk, 45, -1);
var_dump(imagesx($wrk), imagesy($wrk));

Expected result:
----------------
int(100) int(100) 

Actual result:
--------------
int(142) int(142) 


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47947&edit=1



Thread (2 messages)

« previous php.doc.bugs (#2120) next »