note 23409 added to function.imagecopyresampled
| From: | php at dgb-system dot deANTISPAM | Date: | Wed, 17 Jul 2002 18:52:38 +0000 |
| Subject: | note 23409 added to function.imagecopyresampled | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-33220@lists.php.net to get a copy of this message | ||
The easiest way to work around the problem mentioned above (imagecopyresabled ignores the src_x and
src_y parameters), is using imagecopy first to get the rect and than imagecopyresampled to resampl
it.
temp_im = imagecreatetruecolor (srcW, srcH);
imagecopy (temp_im, s_im, 0, 0, srcX, srcY, srcW, srcH);
imagecopyresampled (d_im, temp_im, 0, 0, 0, 0, dstW, dstH, srcW, srcH);
destroy (temp_im);
Gruß, smintman
--
http://www.php.net/manual/en/function.imagecopyresampled.php
http://master.php.net/manage/user-notes.php?action=edit+23409
http://master.php.net/manage/user-notes.php?action=delete+23409
http://master.php.net/manage/user-notes.php?action=reject+23409