Details
Description
A community member has submitted a patch to avoid a compatibility issue when creating an image buffer on a system remote desktop system. Basically the created buffer is using:
GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration().createCompatibleImage()
Is returning an image which is backed with DataBuffer of type DataBufferUShort. The short DataBuffer causes as cast exception when we try and decode the associated raw data stream and apply a color model.
GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration().createCompatibleImage()
Is returning an image which is backed with DataBuffer of type DataBufferUShort. The short DataBuffer causes as cast exception when we try and decode the associated raw data stream and apply a color model.
Activity
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 6.3.2 [ 13175 ] |
| Repository | Revision | Date | User | Message |
| ICEsoft Public SVN Repository | #52813 | Wed Nov 28 20:28:19 MST 2018 | patrick.corless | to get correct graphics configuration. |
| Files Changed | ||||
MODIFY
/icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/graphics/images/ImageUtility.java
|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |

Applied patch, marking as fixed .