teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

4

誤字

2020/02/18 05:38

投稿

FM88mhmh
FM88mhmh

スコア22

title CHANGED
File without changes
body CHANGED
@@ -6,10 +6,10 @@
6
6
  ```C#
7
7
  private void PictureBox_Resize(object sender, EventArgs e)
8
8
  {
9
- int w = pictureBox.Width, h = pictureBox.Height;
9
+ int w = PictureBox.Width, h = PictureBox.Height;
10
10
 
11
11
  PictureBox.Image = new Bitmap(w, h); // ブレークポイント
12
- var g = Graphics.FromImage(pic.Image);
12
+ var g = Graphics.FromImage(PictureBox.Image);
13
13
  g.DrawImage(bmp, point, matSrc.Width, matSrc.Height);
14
14
 
15
15
  PictureBox.Refresh();

3

誤字

2020/02/18 05:38

投稿

FM88mhmh
FM88mhmh

スコア22

title CHANGED
File without changes
body CHANGED
@@ -17,9 +17,8 @@
17
17
  }
18
18
  ```
19
19
 
20
- pic.Imageの行に到達したとき、w, hの値はリサイズ後のPictureBoxののなのですが、
20
+ pic.Imageの行に到達したとき、w, hの値はリサイズ後のPictureBoxのwidthとheightなのですが、
21
- もう一度F11を入力すると、次の行へ行かず、w, hの値がリサイズ前の値に代わってしまい
21
+ もう一度F11を入力すると、次の行へ行かず、w, hの値がリサイズ前のPictureBoxの値に代わってしまいます。
22
- 描画サイズが最初のサイズから変更されません。
23
22
 
24
23
  w, hの値が途中で変わってしまうのはなぜなのでしょうか。
25
24
 

2

誤字

2020/02/18 04:50

投稿

FM88mhmh
FM88mhmh

スコア22

title CHANGED
File without changes
body CHANGED
@@ -8,11 +8,11 @@
8
8
  {
9
9
  int w = pictureBox.Width, h = pictureBox.Height;
10
10
 
11
- pic.Image = new Bitmap(w, h); // ブレークポイント
11
+ PictureBox.Image = new Bitmap(w, h); // ブレークポイント
12
12
  var g = Graphics.FromImage(pic.Image);
13
13
  g.DrawImage(bmp, point, matSrc.Width, matSrc.Height);
14
14
 
15
- pic.Refresh();
15
+ PictureBox.Refresh();
16
16
  g.Dispose();
17
17
  }
18
18
  ```

1

誤字

2020/02/18 04:47

投稿

FM88mhmh
FM88mhmh

スコア22

title CHANGED
File without changes
body CHANGED
@@ -21,7 +21,7 @@
21
21
  もう一度F11を入力すると、次の行へ行かず、w, hの値がリサイズ前の値に代わってしまい、
22
22
  描画サイズが最初のサイズから変更されません。
23
23
 
24
- w, hの値がとちゅうで変わってしまうのはなぜなのでしょうか。
24
+ w, hの値が途中で変わってしまうのはなぜなのでしょうか。
25
25
 
26
26
  ご助言お願いいたします。
27
27