Delphi 7 - Draw circle with transparent core using canvas -


i'm trying draw simple circle using delphi 7 , canvas, , i'm doubt if want possible.

as following image, want draw circle without core/center:

core transparent pie

with jerry dodge suggestion:

enter image description here

  • i don't need of red part, blue part.

code used:

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); 

old information:

the background image simple timage component , draw circle using command:

canvas.brush.color := clgreen; canvas.pie(x1, y1, x2, y2, x3, y3, x4, y4); 

is possible?


solved after tom brunberg , jerry dodge help!

result:

tom


thanks help!

i can think of few ways this, easiest way use large pen width no fill. example...

canvas.brush.style := bsclear; canvas.pen.style := pssolid; canvas.pen.color := clgreen; canvas.pen.width := 50; canvas.pie(x1, y1, x2, y2, x3, y3, x4, y4); 

in case however, pie not proper approach, because leave lines in middle. have use arc instead.


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -