Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Füllfarbe, FloodFill Problem (https://www.delphipraxis.net/118282-fuellfarbe-floodfill-problem.html)

thomas2009 4. Aug 2008 16:18


Füllfarbe, FloodFill Problem
 
Liste der Anhänge anzeigen (Anzahl: 1)
Hallo

ich versuche einen Bereich in meinem Bild mit einer Farbe zu füllen
Es wird aber das Bild komplett gefärbt : (
Delphi-Quellcode:
FloodFill(50,50,clRed,fsBorder);
Ich möchte aber nur den innen Bereich füllen

dominikkv 4. Aug 2008 16:32

Re: Füllfarbe, FloodFill Problem
 
Deine Begrenzung ist auch Blau, und nicht Rot...
Versuchs also mal mit
Delphi-Quellcode:
FloodFill(50, 50, clBlue, fsBorder);

Neutral General 4. Aug 2008 16:41

Re: Füllfarbe, FloodFill Problem
 
Hi,

Das gleiche Ergebnis bringt:

Delphi-Quellcode:
FloodFill(50, 50, Canvas.Pixels[50,50], fsSurface);
Gruß
Neutral General

Medium 4. Aug 2008 16:47

Re: Füllfarbe, FloodFill Problem
 
Ausserdem hast du ein Loch in einer Kante.

thomas2009 4. Aug 2008 17:39

Re: Füllfarbe, FloodFill Problem
 
Danke für alle : )


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:20 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz