title: Adding graphics and image to a PictureBox
body: <p>I have a <code>PictureBox</code> control. I want to put an image in this <code>PictureBox</code>.</p>
  
  <p>This I did:</p>
  
  <pre><code>pictureBox1.Image = Image.FromFile(@"D:\test.jpg");
  </code></pre>
  
  <p>I don't want the image to fill the entire <code>PictureBox</code>.</p>
  
  <p>Next, I want to draw graphics on the <code>PictureBox</code> which I do using the following code:</p>
  
  <pre><code>Graphics g = pictureBox1.CreateGraphics();
  
  g.DrawArc(....);
  g.DrawLine(....);
  </code></pre>
  
  <p>It should be something as shown in the following picture:</p>
  
  <p><a href="https://i.stack.imgur.com/EYx7q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EYx7q.png" alt="enter image description here"></a></p>
  
  <p>In the above picture, the image should be only in the bounds of the blue rectangle, around which I want to draw the graphics. How to draw an image?</p>