You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by th...@kodak.com on 2008/02/06 02:08:27 UTC

Re: panning around an image.

Hi Theo,

theodore <Th...@lonelyplanet.com.au> wrote on 01/10/2008 07:38:58 
PM:

> Can someone please direct me to how I would pan around a JCanvas
> programmatically?

   Pan is controlled by adjusting the rendering transform on the
canvas.  Primarily by calling 'setRenderingTransform(AffingTransform)'

> I have managed to bring in an svg document, however wanted to be able to
> move this about. Also any hints as to how to best optimise the panning 
would
> be helpful.

    Simply adjusting the rendering transform is the optimal way to 
perform panning for now.