800×600の画像があります
・半分(400×300)に縮小
・縮小した画像の中央120×120
を出力したいと考えております
$image_resource = imagecreatefrompng($ImagePath); $width_resource = ImageSx($image_resource); $height_resource = ImageSy($image_resource); $width_trimming = ImageSx($image_resource) / 2; $height_trimming = ImageSy($image_resource) / 2; $width_output = 120; $height_output = 120; $image_output = ImageCreateTrueColor($width_output,$height_output); //ブレンドモードを無効にする imagealphablending($image_output, false); //完全なアルファチャネル情報を保存するフラグをonにする imagesavealpha($image_output, true);
までは分かるのですが,次が
ImageCopyResampled($image_output, $image_resource,0,0,?,?,?,?);
?の位置に何を入れるかがわかりません。
お分かりになる方いらっしゃいましたらお教えください
よろしくお願いいたします

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。