回答編集履歴
1
引数足りなかった
test
CHANGED
@@ -6,6 +6,6 @@
|
|
6
6
|
|
7
7
|
$scale = 0.5; // 拡大縮小率
|
8
8
|
|
9
|
-
ImageCopyResampled($image_output, $image_resource, 0, 0, $width_output, $height_output, ($width_resource - ($width_output / $scale)) / 2, ($height_resource - ($height_output / $scale)) / 2);
|
9
|
+
ImageCopyResampled($image_output, $image_resource, 0, 0, $width_output, $height_output, ($width_resource - ($width_output / $scale)) / 2, ($height_resource - ($height_output / $scale)) / 2, $width_output / $scale, $height_output / $scale);
|
10
10
|
|
11
11
|
```
|