note 18426 added to function.imagecopy
| From: | ivan at vipdata dot hr | Date: | Tue, 22 Jan 2002 14:55:18 +0000 |
| Subject: | note 18426 added to function.imagecopy | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-25694@lists.php.net to get a copy of this message | ||
When I apply a "mask" on some JPEG, output is in different color than mask. What I'm
doing wrong.
Here is my code:
$insertfile_id = imageCreateFromPNG($insertfile);
$sourcefile_id = imageCreateFromJPEG($sourcefile);
$sourcefile_width=imageSX ($sourcefile_id);
$sourcefile_height=imageSY($sourcefile_id);
$insertfile_width=imageSX($insertfile_id);
$insertfile_height=imageSY($insertfile_id);
imageCopy($sourcefile_id, $insertfile_id, $dest_x, $dest_y, 0, 0, $insertfile_width,
$insertfile_height);
ImageJPEG ($sourcefile_id, $targetfile, 80);
ImageDestroy($sourcefile_id);
--
http://www.php.net/manual/en/function.imagecopy.php
http://master.php.net/manage/user-notes.php?action=edit+18426
http://master.php.net/manage/user-notes.php?action=delete+18426
http://master.php.net/manage/user-notes.php?action=reject+18426