Felipe Monteiro de Carvalho schrieb:
On Wed, Dec 7, 2011 at 11:27 AM, Hans-Peter Diettrich
<drdiettri...@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

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to