This site is currently read-only as we are migrating to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 30th, when you will be able to use this site as normal.

    Forum Stats

  • 3,889,798 Users
  • 2,269,775 Discussions
  • 7,916,823 Comments

Discussions

AffineTransform scale problem

989313
989313 Member Posts: 3
edited May 17, 2013 11:39AM in Abstract Window Toolkit (AWT)
Hi,

I'm working on an application that uses the Printable interface to print out the contents of a canvas. It works fine when the printer is set to portrait, but not if it's set to landscape.

When set to portrait, the AffineTransform of the Graphics object has a scale of 8.3. However, when this is changed to landscape in the printer settings dialog, the scale is zero. Also, in landscape, the transform appears to be set for a shear. Does anyone have any ides on this?

Thanks.

Answers

This discussion has been closed.