-
Bug
-
Resolution: Fixed
-
P3
-
fx2.0
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)
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)
- relates to
-
JDK-8114511 IAE from ImageFormatTool.convertImageFrame()
- Closed
-
JDK-8114224 BMP images display is not supported in WebNode
- Closed