Autor Beitrag
sauerkraut
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 70



BeitragVerfasst: Di 02.12.03 17:19 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
var i:integer;
begin
Canvas.moveto(5,5);
Canvas.Floodfill(10,10, clwhite ,fsborder);
  for i:=0 to 11 do
  begin
  canvas.LineTo(405, 40*i+5);
  canvas.MoveTo(5, (i*40+5)+40);
  end;
  Canvas.moveto(5,5);
    for i:=0 to 11 do
  begin
  canvas.LineTo(40*i+5, 405);
  canvas.MoveTo((i*40+5)+40, 5);
  Canvas.Floodfill(i+6,i+6, clblack ,fssurface);
  end;
end;

das ist natürlich noch nicht fertig, aber das floosfill will einfach nicht funktionieren...keines der beiden!

Moderiert von user profile iconTino: Code- durch Delphi-Tags ersetzt.
ixtreme
Gast
Erhaltene Danke: 1



BeitragVerfasst: Di 02.12.03 17:35 
was soll denn da nicht funktionieren?


gruß

ixtreme.de


P.S. Benutzt doch bitte die Delphi Code Tags
sauerkraut Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 70



BeitragVerfasst: Di 02.12.03 17:40 
die linien werden gezeichnet, aber es wird nix gefüllt!
ixtreme
Gast
Erhaltene Danke: 1



BeitragVerfasst: Di 02.12.03 17:49 
doch weiß!
sauerkraut Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 70



BeitragVerfasst: Di 02.12.03 18:16 
ich weiss, wie weiss aussieht, es wir nicht gemalt...
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: Di 02.12.03 18:18 
probier mal statt FloodFill FillRect.
sauerkraut Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 70



BeitragVerfasst: Di 02.12.03 18:22 
hast du irgendwo ne beschreibung wie man das benutzt? thx
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: Di 02.12.03 20:14 
Ja, und die hast du auch (Onlinehilfe) :evil:
Der Parameter gibt die Abmessungen des Rechtecks an (mit rect() kannst du ein TRect erzeugen, ohne eine Variable dafür anzulegen). Das Rechteck wird mit der Hintergrundfarbe des Canvas gefüllt (Brush.color)