[reportlab-users] diagonal ShadedRect and Clipping ?

Robin Becker reportlab-users@reportlab.com
Sun, 11 Aug 2002 11:03:37 +0100


In article <3D563084.AB6D15FB@rasselstein-hoesch.de>, Dirk Datzert
<dirk.datzert@tks-rasselstein.thyssenkrupp.com> writes
>Hi,
>
>based on the new clipping for renderPM and ShadedRect I wrote a class
>RotatedShadedRect.
>
>RotatedShadedRect implements 3 new orientations 'diagonal' same as
>'diagonalup' and 'diagonaldown'
>The shadding goes than from one corner to the diagonal opposite.
>
>You can set any rotation angle instead, with the attribute angle (in
>degrees).
>
>This class shows only the implementation howto do this effect.
>Robin, Dinu and me (and hopefully some more) are currently discussing
>how to define a new class which take ShadedRect and RotatedShadedRect
>and probably some other shading mode all together.
>
>Regards,
>Dirk
>[ A MIME application / x-unknown-content-type-py_auto_file part was included 
>here. ]
>
I have added an experimental grids.ShadedPolygon class. It works, but
clearly shows problems with the libart intersector with thin rectangles
'leaking' through the clipPath.
-- 
Robin Becker