title: Delphi 7 - Draw circle with transparent core using canvas
body: <p>I'm trying to draw a simple circle using <code>Delphi 7</code> and <code>Canvas</code>, and I'm doubt if what I want to do is possible.</p>
  
  <p>As the following image, I want to draw a circle without a core/center:</p>
  
  <p><a href="https://i.stack.imgur.com/Hi7qf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Hi7qf.png" alt="Core transparent"></a>
  <a href="https://i.stack.imgur.com/RhzCh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RhzCh.png" alt="Pie"></a></p>
  
  <p>With Jerry Dodge suggestion:</p>
  
  <p><a href="https://i.stack.imgur.com/F6qkt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F6qkt.png" alt="enter image description here"></a></p>
  
  <ul>
  <li>I don't need of the red part, only the blue part.</li>
  </ul>
  
  <p>Code used:</p>
  
  <pre><code>Canvas.Brush.Style := bsClear;
  Canvas.Pen.Style := psSolid;
  Canvas.Pen.Color := clGreen;
  Canvas.Pen.Width := 20;
  Canvas.Pie(X1, Y1, X2, Y2, X3, Y3, X4, Y4);
  </code></pre>
  
  <hr>
  
  <p>Old information:</p>
  
  <p>The background image is a simple <code>TImage</code> component and I draw the circle using this command:</p>
  
  <pre><code>Canvas.Brush.Color := clgreen;
  Canvas.Pie(X1, Y1, X2, Y2, X3, Y3, X4, Y4);
  </code></pre>
  
  <hr>
  
  <p>Is it possible?</p>
  
  <hr>
  
  <p><strong>Solved after Tom Brunberg and Jerry Dodge help!</strong></p>
  
  <p><strong>Result:</strong> </p>
  
  <p><a href="https://i.stack.imgur.com/0kr8W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0kr8W.png" alt="tom"></a></p>
  
  <hr>
  
  <p>Thanks for all help!</p>