質問編集履歴

1

誤字

2017/12/05 07:29

投稿

iwantmoney0125
iwantmoney0125

スコア6

test CHANGED
File without changes
test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
 
8
8
 
9
- 追加したのは最後の2017,11,27の所と、ボディインデックスフレームのBGRAデータに変換するという所のWriteFile("test.txt","bodyIndexColors[indez]");のところです。
9
+ 追加したのは最後の2017,11,27の所と、ボディインデックスフレームのBGRAデータに変換するという所のWriteFile("test.txt",body);のところです。
10
10
 
11
11
 
12
12
 
@@ -86,16 +86,6 @@
86
86
 
87
87
 
88
88
 
89
- //データ保存用
90
-
91
- int bodyIndexColorBytesPerPixels2 = 4;
92
-
93
- byte[] bodyIndexColorBuffer2;
94
-
95
- WriteableBitmap bodyIndexColorBitmap2;
96
-
97
-
98
-
99
89
  Color[] bodyIndexColors;
100
90
 
101
91
  BodyFrameReader bodyFrameReader;
@@ -274,10 +264,6 @@
274
264
 
275
265
  bodyIndexColorBuffer[colorindex + 3] = 255;
276
266
 
277
-
278
-
279
- WriteFile("test.txt", "bodyIndexColors[index]");
280
-
281
267
  }
282
268
 
283
269
  else
@@ -292,15 +278,11 @@
292
278
 
293
279
  bodyIndexColorBuffer[colorindex + 3] = 255;
294
280
 
295
-
296
-
297
- WriteFile("test.txt", "bodyIndexColors[index]");
298
-
299
281
  }
300
282
 
301
-
302
-
303
- //bodyIndexColorBuffer2[] = bodyIndexColorBuffer[];
283
+ byte body = BodyIndexBuffer[i];
284
+
285
+ WriteFile("test.txt", body);
304
286
 
305
287
 
306
288
 
@@ -478,7 +460,7 @@
478
460
 
479
461
  //2017,11,27
480
462
 
481
- private static async void WriteFile(string fileName, string body)
463
+ private static async void WriteFile(string fileName, byte body)
482
464
 
483
465
  {
484
466
 
@@ -504,7 +486,7 @@
504
486
 
505
487
  writer.UnicodeEncoding = Windows.Storage.Streams.UnicodeEncoding.Utf8;
506
488
 
507
- writer.WriteString(body);
489
+ writer.WriteByte(body);
508
490
 
509
491
  await writer.StoreAsync();
510
492