[reportlab-users] diagonal ShadedRect and Clipping ?

Robin Becker reportlab-users@reportlab.com
Tue, 6 Aug 2002 16:46:53 +0100


In article <001e01c23d3d$72e93260$3e28011c@rag2>, Dirk Datzert
<dirk.datzert@tks-rasselstein.thyssenkrupp.com> writes
>> Logically the clipPath should be set on when isClipPath = 1 is true and
>> we draw a path. The problem is when should it be turned off?
>> 
>> In the current example bplane is the rotated shaded thing and rect is
>> the foreground rectangle.
>> 
>> logically we need
>>         result.add(clip)        # start clipping
>>         result.add(bplane)      # this will be clipped
>>         result.add(antiClip)    # this turns off clipping
>>         result.add(rect)
>>         return result
>> 
>
>Calculating an anitClip shouldn't be a problem, if you tell me where to set to 
>isAntiClipPath-Attribute ;-)
>
>As far as I understand is that at the moment the renderPM can do such
>clipping/anticlipping at the inner of a drawing ?
>
>> I will have a go at the first ie a predefined path AntiClipPath to see
>> if it works out.
>
.....
problem is that we don't really have the infra-structure in place for
this. I'm trying a couple of things out.
-- 
Robin Becker