回答編集履歴
1
見直しキャンペーン中
test
CHANGED
@@ -1,57 +1,29 @@
|
|
1
1
|
こんな感じでどうでしょうか
|
2
2
|
|
3
|
-
MainForm.cs
|
3
|
+
```cs:MainForm.cs
|
4
|
+
namespace WaveFormRendererApp
|
5
|
+
{
|
6
|
+
public partial class MainForm : Form
|
7
|
+
{
|
8
|
+
// 省略
|
4
9
|
|
5
|
-
```C#
|
6
|
-
|
7
|
-
na
|
10
|
+
private void RenderThreadFunc(IPeakProvider peakProvider, WaveFormRendererSettings settings)
|
8
|
-
|
9
|
-
{
|
11
|
+
{
|
10
|
-
|
11
|
-
|
12
|
+
Image image = null;
|
12
|
-
|
13
|
+
try
|
13
|
-
{
|
14
|
+
{
|
15
|
+
image = waveFormRenderer.Render(selectedFile, peakProvider, settings);
|
16
|
+
// ここで右に90度回す
|
17
|
+
image.RotateFlip(RotateFlipType.Rotate90FlipNone);
|
18
|
+
}
|
19
|
+
catch(Exception e)
|
20
|
+
{
|
21
|
+
MessageBox.Show(e.Message);
|
22
|
+
}
|
23
|
+
BeginInvoke((Action)(() => FinishedRender(image)));
|
24
|
+
}
|
14
25
|
|
15
26
|
// 省略
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
private void RenderThreadFunc(IPeakProvider peakProvider, WaveFormRendererSettings settings)
|
20
|
-
|
21
|
-
{
|
22
|
-
|
23
|
-
Image image = null;
|
24
|
-
|
25
|
-
try
|
26
|
-
|
27
|
-
{
|
28
|
-
|
29
|
-
image = waveFormRenderer.Render(selectedFile, peakProvider, settings);
|
30
|
-
|
31
|
-
// ここで右に90度回す
|
32
|
-
|
33
|
-
image.RotateFlip(RotateFlipType.Rotate90FlipNone);
|
34
|
-
|
35
|
-
}
|
36
|
-
|
37
|
-
catch(Exception e)
|
38
|
-
|
39
|
-
{
|
40
|
-
|
41
|
-
MessageBox.Show(e.Message);
|
42
|
-
|
43
|
-
}
|
44
|
-
|
45
|
-
BeginInvoke((Action)(() => FinishedRender(image)));
|
46
|
-
|
47
|
-
}
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
// 省略
|
52
|
-
|
53
27
|
}
|
54
|
-
|
55
28
|
}
|
56
|
-
|
57
29
|
```
|