[haiku-appserver] another issue. ClipToPicture.

  • From: Adi Oanca <adioanca@xxxxxxxxxxxxxx>
  • To: haiku-appserver@xxxxxxxxxxxxx
  • Date: Thu, 28 Oct 2004 17:04:03 +0300

Hi,

        Been thinking around...

        How are we going to clip drawing instructions (for a Layer) in case we 
have a picture attached with 
BView::ClipToPicture()?

        The only good idea that comes to me is: allocate a 2 color bitmap with 
the height and width of 
visible_region.maxY & visible_region_maxX, draw that picture in there, and 
then, every drawing 
instruction required to be drawn in this layer, is compared against this 1bit 
bitmap to see what 
pixels should be drawn on screen.
        [ I'm thinking this can be MMX, SEE accelerated ]

        Opinions?

        Of course, you can always convert this bitmap into a region, but I'm 
not sure this is a good idea, 
as this region can become quite big, and it involves a lot of processing.


bye,
Adi.

Other related posts: