I have an application with batik in an SVG canvas inside a scroll pane, I have it set up so that it's possible to zoom in and out.

 

I also overlay on top several JComponents that zoom in sequence with the Batik image.

 

 

When you zoom in on a Batik image, if there is enough space in the canvas window, instead of using the scale factor quote in an AffineTransform the batik image will sometimes enlarge its self if there is space, is there anyway of stopping it doing this? Or alternatively find out what its actual done?

 

 

If you have a Batik image in a JSvgCanvas and the Batik image is smaller than the window, then the image in cantered in the middle of the window, is there any way of forcing that batik image to either lock to the left hand border.  It is possible to take the window size, and the batik image size, subtract the two and use that as a image offset, but I would prefer that the batik image, just  align itself to the left margin.

 

I have assumed that batik is being clever and performing a scale to fit

 

David.



***********************************************************************************
This email, its content and any attachments is PRIVATE AND
CONFIDENTIAL to TANDBERG Television. If received in error please
notify the sender and destroy the original message and attachments.

www.tandbergtv.com
***********************************************************************************

Reply via email to