Article View: borland.public.cppbuilder.nativeapi
Article #10955Re: FloodFill Problems
From: Giovanni Lazzarini
Date: Mon, 08 Mar 2004 12:56
Date: Mon, 08 Mar 2004 12:56
39 lines
2338 bytes
2338 bytes
I tried with ExtFloodFill and I need this function because some part of canvas needs to be painted with a not regular region. Exacty like ExtFloodFill is working. Same result! "Eelke Klein" <e.klein@mplussoftware.nl> ha scritto nel messaggio news:404c22d7$1@newsgroups.borland.com... > Giovanni Lazzarini wrote: > > Hi all, > > I try to use in my windows area FillRect(...) and FloodFill(...) in a main > > form. > > When I move a new windows form on this region FillRect works good behind new > > windows but FloodFill doesn't: it paints only a region part with new Brush > > color, the rest is painted with default one. > > I tried to use method in canvas class and API too with the same result. > > Any Idea? > > > > > First you should use ExtFloodFill in 32-bits programs FloodFill is for > compatibility with 16-bit windows. > > From the MSDN: > The FloodFill function fills an area of the display surface with the > current brush. The area is assumed to be bounded as specified by the > crFill parameter. > > My guess it fills only a region because it encountered the specified > border color. > > FillRect on the other hand allways fills the specified rectangular region. > > Use FloodFill only when you have to fill a non-rectangular area for > rectangular areas FillRect is much faster. > > Eelke >
Technical Details
Message-ID:
<404c6d94@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<404b4ae2$1@newsgroups.borland.com> <404c22d7$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,405417ddd7f666d5 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-03-08 05:09:56 PST From: "Giovanni Lazzarini" <glazzariniATmediasoft-srlDOTcom> Newsgroups: borland.public.cppbuilder.nativeapi References: <404b4ae2$1@newsgroups.borland.com> <404c22d7$1@newsgroups.borland.com> Subject: Re: FloodFill Problems Date: Mon, 8 Mar 2004 13:56:55 +0100 Lines: 41 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 81.72.21.218 Message-ID: <404c6d94@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1078750612 81.72.21.218 (8 Mar 2004 04:56:52 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail