Will have to figure that one out. It might place constraint on the UI, the other way around or else do an extra drawOutline call. .. Thanks for your help.. --- Doug McFadyen <[EMAIL PROTECTED]> wrote: > > You might be able to tweak the drawing to help fill > only the part of the U > shaped building. If you draw the "outline" of your > U shaped building in a > "color" that is NOT in another building inside the > U, then as you fill the U > polygon, you can consider the other building to be > "outside" of the U > polygon because it doesn't contain any of the > "keying" colors you're using > to fill the U poly. > > Or something like that. > > Doug. > > > -----Original Message----- > From: Kim Hock NG [mailto:[EMAIL PROTECTED]] > Sent: Wednesday January 23, 2002 17:37 > To: Palm Developer Forum > Subject: RE: Polygon filling for Palm - Code Example > > > Thanks. You seem to be working within the rectangle > bounded by 0,0,XMAX, YMAX. In a general condition, > there may be other polygons nearby that cuts into > the > rectangular region that I am trying to fill. > > E.g There is a U shaped building and smack in the > center is another square building. We are supposed > to > only fill the U shaped building and left the square > building alone. > > Do I have to perform the operation in another > rectangular area first that UNION it will the > background rectangle? > > All these trouble just to get that filling.... > --- Doug McFadyen <[EMAIL PROTECTED]> wrote: > > > > Here's some REALLY OLD fossilized code I wrote > years > > ago to test a poly > > filling algorithm. This code can be compiled by > the > > old MS DOS (C 8.0) > > compiler. It works DIRECTLY on an old DOS text > > screen, using the screen > > memory address as a 80x25 array in which to draw > the > > polygon and fill it. > > If compiled, the program would probably work in a > > DOS Windows under Windows > > 9x.... > > > > > __________________________________________________ > Do You Yahoo!? > Great stuff seeing new owners in Yahoo! Auctions! > http://auctions.yahoo.com > > -- > For information on using the Palm Developer Forums, > or to unsubscribe, > please see > http://www.palmos.com/dev/tech/support/forums/ > > -- > For information on using the Palm Developer Forums, > or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
__________________________________________________ Do You Yahoo!? Great stuff seeing new owners in Yahoo! Auctions! http://auctions.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
