| 1551 | } |
| 1552 | |
| 1553 | private static ByteBuffer readIconImage(InputStream p_readIconImage_0_) throws IOException { |
| 1554 | BufferedImage bufferedimage = ImageIO.read(p_readIconImage_0_); |
| 1555 | int[] aint = bufferedimage.getRGB(0, 0, bufferedimage.getWidth(), bufferedimage.getHeight(), null, 0, bufferedimage.getWidth()); |
| 1556 | ByteBuffer bytebuffer = ByteBuffer.allocate(4 * aint.length); |
| 1557 | |
| 1558 | for (int i : aint) { |
| 1559 | bytebuffer.putInt(i << 8 | i >> 24 & 255); |
| 1560 | } |
| 1561 | |
| 1562 | bytebuffer.flip(); |
| 1563 | return bytebuffer; |
| 1564 | } |
| 1565 | |
| 1566 | public static void checkDisplayMode() { |
| 1567 | try { |