Re: handling background images

From: Leonard Rosenthol (
Date: Tue Jul 30 2002 - 13:22:11 EDT

  • Next message: Joaquín Cuenca Abela: "Re: Consensus Reached (Was Design proposal for updateBackground)"

    >The fp_Container::drawBackgroundRegion() will do the same: check
    >its bacground colour, and if it is not trasparent or image, it will draw
    >the region (using _drawBackgroundRegion()), otherwise it will call
    >drawBackgroundRegion() of its parent container, and so on.
    >This would entirely eliminate the need for fp_Run::update*Color(),
    >because the only colour the run would need to know is its very own.
    >However, there would be some performance cost, because the run
    >would have to work up through the container hierarchy on each
    >background drawing, and this might be to much to bear; its hard to
    >tell without trying.

            the other problem with your suggestion is that it doesn't
    lend itself to support real alpha transparency, since there'd be no
    way to "blend" the different background elements together :(.


    Leonard Rosenthol                            <>

    This archive was generated by hypermail 2.1.4 : Tue Jul 30 2002 - 13:28:40 EDT