Examples of write4Bytes()


Examples of org.apache.sanselan.common.BinaryOutputStream.write4Bytes()

            ByteArrayOutputStream byteArrayStream = new ByteArrayOutputStream();
            BinaryOutputStream bos = new BinaryOutputStream(byteArrayStream,
                    BinaryOutputStream.BYTE_ORDER_LITTLE_ENDIAN);
            // Palette
            for (int i = 0; i < paletteSize; i++)
                bos.write4Bytes(0);
            // Image
            for (int y = 15; y >= 0; y--)
            {
                for (int x = 0; x < 16; x++)
                {
View Full Code Here

Examples of org.apache.sanselan.common.BinaryOutputStream.write4Bytes()

    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++)
View Full Code Here

Examples of org.apache.sanselan.common.BinaryOutputStream.write4Bytes()

    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++)
    {
View Full Code Here

Examples of org.apache.sanselan.common.BinaryOutputStream.write4Bytes()

    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++)
    {
      bos.write(0xff);
View Full Code Here

Examples of org.apache.sanselan.common.BinaryOutputStream.write4Bytes()

    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++)
    {
      bos.write(0xff);
      bos.write(0xff);
View Full Code Here

Examples of org.apache.sanselan.common.BinaryOutputStream.write4Bytes()

            ByteArrayOutputStream byteArrayStream = new ByteArrayOutputStream();
            BinaryOutputStream bos = new BinaryOutputStream(byteArrayStream,
                    BinaryOutputStream.BYTE_ORDER_LITTLE_ENDIAN);
            // Palette
            for (int i = 0; i < paletteSize; i++)
                bos.write4Bytes(0);
            // Image
            for (int y = 15; y >= 0; y--)
            {
                for (int x = 0; x < 16; x++)
                {
View Full Code Here

Examples of org.apache.sanselan.common.BinaryOutputStream.write4Bytes()

    {
      bos.write(0xff);
      bos.write(0xff);
    }
    // 8 BPP alpha mask - partially transparent
    bos.write4Bytes(IcnsType.ICNS_16x16_8BIT_MASK.getType());
    bos.write4Bytes(4 + 4 + 16*16);
    for (int y = 0; y < 16; y++)
    {
      for (int x = 0; x < 16; x++)
      {
View Full Code Here

Examples of org.apache.sanselan.common.BinaryOutputStream.write4Bytes()

      bos.write(0xff);
      bos.write(0xff);
    }
    // 8 BPP alpha mask - partially transparent
    bos.write4Bytes(IcnsType.ICNS_16x16_8BIT_MASK.getType());
    bos.write4Bytes(4 + 4 + 16*16);
    for (int y = 0; y < 16; y++)
    {
      for (int x = 0; x < 16; x++)
      {
        if (image[y][x] != 0)
View Full Code Here

Examples of org.apache.sanselan.common.BinaryOutputStream.write4Bytes()

    final int foreground = 0xff000000;
    final int background = 0x00cccccc;
    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 + 16*16 + 4 + 4 + 16*16);
    bos.write4Bytes(IcnsType.ICNS_16x16_8BIT_IMAGE.getType());
    bos.write4Bytes(4 + 4 + 16*16);
    // 8 BPP image
    for (int y = 0; y < 16; y++)
View Full Code Here

Examples of org.apache.sanselan.common.BinaryOutputStream.write4Bytes()

    final int background = 0x00cccccc;
    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 + 16*16 + 4 + 4 + 16*16);
    bos.write4Bytes(IcnsType.ICNS_16x16_8BIT_IMAGE.getType());
    bos.write4Bytes(4 + 4 + 16*16);
    // 8 BPP image
    for (int y = 0; y < 16; y++)
    {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.