質問編集履歴
1
現在のプログラム
test
CHANGED
File without changes
|
test
CHANGED
@@ -54,7 +54,7 @@
|
|
54
54
|
|
55
55
|
int i, j, x, y;
|
56
56
|
|
57
|
-
unsigned int
|
57
|
+
unsigned int rr, gg, bb;
|
58
58
|
|
59
59
|
int size = 16;
|
60
60
|
|
@@ -92,8 +92,6 @@
|
|
92
92
|
|
93
93
|
|
94
94
|
|
95
|
-
|
96
|
-
|
97
95
|
rr += img[i + x][j + y].r;
|
98
96
|
|
99
97
|
gg += img[i + x][j + y].g;
|
@@ -108,9 +106,9 @@
|
|
108
106
|
|
109
107
|
rr = rr / size * size;
|
110
108
|
|
111
|
-
gg =
|
109
|
+
gg = gg / size * size;
|
112
110
|
|
113
|
-
bb =
|
111
|
+
bb = bb / size * size ;
|
114
112
|
|
115
113
|
|
116
114
|
|
@@ -124,11 +122,11 @@
|
|
124
122
|
|
125
123
|
|
126
124
|
|
127
|
-
img[i][j].r = rr;
|
125
|
+
img[i + x][j + y].r = rr;
|
128
126
|
|
129
|
-
img[i][j].g = gg;
|
127
|
+
img[i + x][j + y].g = gg;
|
130
128
|
|
131
|
-
img[i][j].b = bb;
|
129
|
+
img[i + x][j + y].b = bb;
|
132
130
|
|
133
131
|
|
134
132
|
|