xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cui Jian <...@informatik.uni-bremen.de>
Subject Re: [Help with Centering!!!]
Date Mon, 10 Nov 2008 13:45:05 GMT
I think I've got the picture, thanks very much ;)

Ken
>> But the question is, why are you rotating the whole with the anchor
>> point (centerX, centerY) in the codes:
>>     
>>>> renderingTransform.rotate(-angle, centerX, centerY);
>>>>         
>> what should this point be in this case??? I removed them and do the
>> rotation by renderingTransform.rotate(-angle) and it seems to work too,
>> why is that?
>>     
>
> I'm not properly following this thread, but I believe this is a
> generic approach which can also to be used when the canvas has
> suffered rotation - try playing with Ctrl+right click and drag in
> Batik Squiggle, for a working example. Of course you may probably
> avoid this if you don't intend to support rotation: a minor
> performance improvement versus a potential loss of functionallity. ;-)
>
> Hope this helps,
>
>  Helder Magalhães
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>   



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message