E
Elliot
HI
I use the following code to print some barcode which is rotated 90
degrees down the left side of a page which prints in landscape:
g2d.translate(haX + intBarCodeHeight,
0);
g2d.rotate(90.0 * Math.PI / 180.0); // convert
radians, which are about 57 degrees, to degrees
g2d.drawImage(img,haY,
0,intBarCodeWidth,intBarCodeHeight, null);
The barcode prints correctly; however anything that prints after it is
also rotated and offset (due to g2d.translate(...) I imagine.)
I've tried variations on all of the following with no joy.
// g2d = (Graphics2D) g; // Bring 2D contect back
to normal rotations
// g2d.translate(pf.getImageableX(),
pf.getImageableY());
// g2d.rotate(360.0 * Math.PI / 180.0); // Bring
2D contect back to normal rotations
How can I reset g2d to print normally?
Thanks in advance.
Elliot
I use the following code to print some barcode which is rotated 90
degrees down the left side of a page which prints in landscape:
g2d.translate(haX + intBarCodeHeight,
0);
g2d.rotate(90.0 * Math.PI / 180.0); // convert
radians, which are about 57 degrees, to degrees
g2d.drawImage(img,haY,
0,intBarCodeWidth,intBarCodeHeight, null);
The barcode prints correctly; however anything that prints after it is
also rotated and offset (due to g2d.translate(...) I imagine.)
I've tried variations on all of the following with no joy.
// g2d = (Graphics2D) g; // Bring 2D contect back
to normal rotations
// g2d.translate(pf.getImageableX(),
pf.getImageableY());
// g2d.rotate(360.0 * Math.PI / 180.0); // Bring
2D contect back to normal rotations
How can I reset g2d to print normally?
Thanks in advance.
Elliot