Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

printing in java 1.4  RSS feed

Scott Cook
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to print using java version "1.4.1_06" (my code needs to run on IRIX, which hasn't been updated their JVM since then).

using the following code:

I get the following error:
java.awt.image.ImagingOpException: Unable to transform src image

I've looked this up on Sun's web site, it's bug ID 4723021:
"AffineTransformOp.filter throws a java.awt.image.ImagingOpException: Unable to tranform src image when a PixelInterleavedSampleModel is used."

I can't implement the suggested workaround:
"draw the BufferedImage into a buffered image of type ARGB then perform the affine transform"

because the Object I have to draw into (Graphics g) is handed to me by sun.print.RasterPrinterJob.printPage()
which I have no control over.

Is there some way that I can get source code to sun.print.RasterPrinterJob so that I can extend it and implement the workaround?

Any other suggestions?

Thanks in advance for your help!
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!