2
我有水印的位置,我想設置中間偏左的位置的問題,如何動態此處設置水印水印定位問題
function ($location) {
$watermark = imagecreatefromgif("wm.gif");
$watermark_width = imagesx($watermark);
$watermark_height = imagesy($watermark);
$image = imagecreatetruecolor($watermark_width, $watermark_height);
$image = imagecreatefromjpeg($location);
$size = getimagesize($location);
$pos_x = $size[0] - $watermark_width - 690;
$pos_y = $size[1] - $watermark_height - 250;
imagecopymerge($image, $watermark, $pos_x, $pos_y, 0, 0, $watermark_width, $watermark_height, 100);
imagejpeg($image, $location);
imagedestroy($image);
imagedestroy($watermark);
}
當你說左中心 - 剩下多遠,完整?什麼是兩個絕對數字的援助? – Orbling 2011-04-17 12:36:35
@Orbling是全左和中心 – Chris 2011-04-17 12:38:02
@Orbling明白嗎? – Chris 2011-04-17 12:44:40