On Thu, 10 Jul 2008, a_fritsch wrote:

> Hi,
> > 
> > I assume that AreaEllipse will help.
> > 
> 
> I read the autodocs and tested that, but as I wrote it crashed
> imediately,however.
> 
> When using the Area-function, what preconditions I have to fulfill?
> What about TmpRas? They write about a TemRastport Structure. What Do I
> have to do to initialize this structure? Do I have to Alloc/Free it
> any time in the Draw-Funktion? What size do I have to alloc for my class?

You must set up TmpRas for area fill functions. TmpRas must have a buffer 
which is at least as large as the largest rectangular area.

Example from RKRM:

PLANEPTR myplane;
myplane = AllocRaster(320,200);
if (myplane == 0) exit(1);
myRastPort.TmpRas = InitTmpRas(&myTmpRas,myplane,RASSIZE(320,200));

> Why are such simple things so complicated?

These are function calls from early 80s :) Flood() should have worked but 
maybe you did not set area outline pen? But Flood() is very slow function 
and it is probably better use anything else than that...


  Ilkka


------------------------------------

Visit http://www.amiga.dk/tumult for MUI-related
information, especially about MUI custom classes.Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/MUI/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/MUI/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to