Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4046431

can't print jpeg images

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.1.3
    • 1.1.2
    • client-libs
    • None
    • b01
    • sparc
    • solaris_2.5.1
    • Not verified

      I have an application which simply renders an image in a Canvas. I've added
      a button to initiate a print request as well. Gif images work as expected in
      that the postscript generated from the print request contains the actual image.
      However, jpeg images don't print for some reason. I tried calling printAll()
      on the Canvas as well as rendering the image myself with a PrintGraphics object.
      Neither works.

      I've attached the program. Compile *.java and then 'run img'.
      I've attached 2 images, Shark_bait.gif which works, and Shark_bait.jpg which
      doesn't (I used xv to convert the gif to jpg). The app is currently using the
      jpeg image. Change the image name in img.java to use the .gif file.

      I've tried several different jpg files without any luck.

            flar Jim Graham
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: