final int foreground = 0xff000000;
final int background = 0xff000000;
ByteArrayOutputStream baos = new ByteArrayOutputStream();
BinaryOutputStream bos = new BinaryOutputStream(baos,
BinaryOutputStream.BYTE_ORDER_BIG_ENDIAN);
bos.write4Bytes(IcnsImageParser.ICNS_MAGIC);
bos.write4Bytes(4 + 4 + 4 + 4 + 2*16*16/8 + 4 + 4 + 16*16);
bos.write4Bytes(IcnsType.ICNS_16x16_1BIT_IMAGE_AND_MASK.getType());
bos.write4Bytes(4 + 4 + 2*16*16/8);
// 1 BPP image - all black
for (int y = 0; y < 16; y++)