[fpc-devel] TFPCustomCanvas Expanded Clipping

Hans-Peter Diettrich DrDiettrich1 at aol.com
Wed Dec 7 14:43:54 CET 2011


Felipe Monteiro de Carvalho schrieb:
> On Wed, Dec 7, 2011 at 11:27 AM, Hans-Peter Diettrich
> <DrDiettrich1 at aol.com> wrote:
>> IMO the fastest implementation paints everything to a bitmap, then masks the
>> painting with the region. This should be faster than clipping every single
>> drawing primitve.
> 
> Please prove with test cases which take into account both speed and
> memory usage and are executed against my implementation and also
> against whatever else proposed =)
> 
> Things in practice are much more complex then one might initially
> imagine. My regions implementation is reused for several things:
> 1> Drawing clipping
> 2> Drawing complex objects like poligons, polybeziers, arbitrary regions
> 3> To clip mouse/touch events

Thanks, this finally answers my old question, what's the purpose of 
regions in your model. My suggestion was about clipping regions only, 
not about regions as paint objects.

DoDi




More information about the fpc-devel mailing list