Autor Beitrag
Wolle92
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: Sa 12.01.08 21:56 
Hallo,
wie kann bei einem Image einen farbig gefüllten Kreis zeichnen?
und wie kann ich das gleiche mit der Pie-Funktion machen?

Wolle

_________________
1405006117752879898543142606244511569936384000000000.
nagel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 708

Win7, Ubuntu 10.10

BeitragVerfasst: Sa 12.01.08 22:07 
Ich vermute du weißt, dass du mit der Ellipse- bzw Pie-Funktion des Canvas zeichnest. Um das Ganze dann zu füllen, einfach vorher die Brush-Eigenschaft entsprechend setzen.
LorenzS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 128

MS-DOS, WIN 7, WIN 10
BP7.0, D3, D5
BeitragVerfasst: Sa 12.01.08 22:09 
zeichnet einen red gefüllten kreis
ausblenden Delphi-Quelltext
1:
2:
3:
image1.canvas.brush.color:=clred; //Füllfarbe
image1.canvas.pen.color:=clblue;          //Aussenlinienfarbe  
image1.canvass.Ellipse(0,0,100,100);
Wolle92 Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: So 13.01.08 11:47 
danke
Aber wenn ich nen kreis zeichne, wird der hintergrund des images weiß... kann ich das ändern?

_________________
1405006117752879898543142606244511569936384000000000.
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5284
Erhaltene Danke: 27

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: So 13.01.08 12:28 
ja, indem du ihn einfach vorher mit ner anderen farbe anmalst ;)

Suche in: Delphi-Forum, Delphi-Library TCANVAS
Suche in: Delphi-Forum, Delphi-Library RECTANGLE
Suche in: Delphi-Forum, Delphi-Library FLOODFILL
etc.

mfg
Wolle92 Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: So 13.01.08 12:42 
dann wirds danach trotzdem wieder weiß...
???

_________________
1405006117752879898543142606244511569936384000000000.
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: So 13.01.08 13:06 
Du darfst nicht direkt auf das Image zeichnen, zeichne lieber in die Bitmap.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
with Image1.Picture.Bitmap.Canvas do
begin
  Brush.Color:=clRed;
  Pen.Color:=clBlue;
  Ellipse(00100100);
end;