C (216/257)

From:
Date:22 Feb 2001 at 22:06:00
Subject:Re: Again clipping graphics output

Hello Serge,

>> [...] But if you're dealing with vector graphics you might
>> be better off using AllocRaster + BltTemplate.
> But they tecommend using of AllocBitMap. I'm confused.

AllocRaster allocates a single bitplane. You can blit this to the screen
in your desired colour using BltTemplate().

If you instead allocate a bitmap you waste 24-32 times the memory if the
target screen is true colour (and you allocate it as a friend bitmap),
and you also need to move only 1/24 or 1/32 the amount of bytes... but
I'm not really sure about the speed advantage since P96 seems to give
back a bitplane located in chip-mem when calling AllocRaster().

Though some guy at the MUI list switched from BltBitMapRastPort() to
BltTemplate() and IIRC did notice a minor speed advantage...

>> [...] as I stated earlier you're not really allowed to mix custom
>> layer.library use with intuition screens.
> I do not mix them. I use LL for an off-screen graphics, and then
> blit the result to my rastport.

As a precaution I choose to interpret the warning (about intuition) as
including graphics.library, perhaps that's not how it was ment, but
better safe than sorry...

Kind regards Allan

------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
---------------------------------------------------------------------_->

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