Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!cbmvax!carolyn From: carolyn@cbmvax.cbm.UUCP (Carolyn Scheppner) Newsgroups: net.micro.amiga Subject: Re: Flood fills. Message-ID: <831@cbmvax.cbmvax.cbm.UUCP> Date: Fri, 3-Oct-86 10:56:15 EDT Article-I.D.: cbmvax.831 Posted: Fri Oct 3 10:56:15 1986 Date-Received: Sat, 4-Oct-86 12:16:22 EDT References: <535@zinfandel.UUCP> Reply-To: carolyn@cbmvax.UUCP (Carolyn Scheppner) Distribution: net Organization: Commodore Technology, West Chester, PA Lines: 30 In article <535@zinfandel.UUCP> donw@zinfandel.UUCP (Don White) writes: > > I am writing a program in which I need to fill irregular shapes. I have >a pointer to a rastport from a window which I am successfully using for >'WritePixel(Window->RPort,x,y);' in the same function but when I try to use >'Flood(Window->RPort,mode,x,y);' nothing happens. Although the Flood code fragment in the RK manual does not show a TmpRas allocation, I believe you do need a TmpRas to use Flood. Declare or allocate a TmpRas structure. Use AllocRaster to allocate a TmpRas raster the size of one bit-plane Use InitTmpRas to initialize your TmpRas structure. Link the TmpRas structure to the RastPort you wnat to Flood() in by putting the address of your initialized TmpRas structure in yourRastPort->TmpRas. (now try Flood) And remember to FreeRaster the extra bit-plane you allocated in your program cleanup. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Carolyn Scheppner -- CBM >>Amiga Technical Support<< UUCP ...{allegra,caip,ihnp4,seismo}!cbmvax!carolyn PHONE 215-431-9180 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=