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

ImageView is unable to display a specific BMP image

    XMLWordPrintable

    Details

      Description

      If I run the attached program instructing it to open the attached image file, the window that opens does not display the image file content. Many other BMP images are displayed just fine. If I resize the attached image in mspaint, the program may or may not display it. It looks like it has something to do with the image size.

      If I attempt to load the file as com.sun.prism.Image via com.sun.javafx.iio.ImageStorage.loadAll() and com.sun.prism.ImageFormatTool.convertImageFrame(), ImageFormatTool.convertImageFrame() throws:

      java.lang.IllegalArgumentException: Image scanlineStride must be a multiple of the pixel stride
      at com.sun.prism.Image.<init>(Image.java:139)
      at com.sun.prism.Image.fromByteRgbData(Image.java:55)
      at com.sun.prism.ImageFormatTool.convertImageFrame(ImageFormatTool.java:33)
      at imagetest.PrismTest.start(PrismTest.java:36)
      at com.sun.javafx.application.LauncherImpl$4.run(LauncherImpl.java:170)
      at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:136)
      at com.sun.javafx.application.PlatformImpl$3.run(PlatformImpl.java:108)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
      at com.sun.glass.ui.win.WinApplication$1$1.run(WinApplication.java:49)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kprazdnikwse Kirill.Prazdnikov (Inactive)
              Reporter:
              vbaranov Vasiliy Baranov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: