Examples of PNGChunkiCCP


Examples of org.apache.commons.imaging.formats.png.chunks.PngChunkIccp

            final int crc = read4Bytes("CRC", is, "Not a Valid PNG File", getByteOrder());

            if (keep) {
                if (chunkType == ChunkType.iCCP.value) {
                    result.add(new PngChunkIccp(length, chunkType, crc, bytes));
                } else if (chunkType == ChunkType.tEXt.value) {
                    result.add(new PngChunkText(length, chunkType, crc, bytes));
                } else if (chunkType == ChunkType.zTXt.value) {
                    result.add(new PngChunkZtxt(length, chunkType, crc, bytes));
                } else if (chunkType == ChunkType.IHDR.value) {
View Full Code Here

Examples of org.apache.commons.imaging.formats.png.chunks.PngChunkIccp

        if (chunks.size() > 1) {
            throw new ImageReadException(
                    "PNG contains more than one ICC Profile ");
        }

        final PngChunkIccp pngChunkiCCP = (PngChunkIccp) chunks.get(0);
        final byte[] bytes = pngChunkiCCP.uncompressedProfile;

        return (bytes);
    }
View Full Code Here

Examples of org.apache.commons.imaging.formats.png.chunks.PngChunkIccp

            } else if (iCCPs.size() == 1) {
                if (getDebug()) {
                    System.out.println("iCCP.");
                }

                final PngChunkIccp pngChunkiCCP = (PngChunkIccp) iCCPs.get(0);
                final byte[] bytes = pngChunkiCCP.uncompressedProfile;

                iccProfile = ICC_Profile.getInstance(bytes);
            } else if (gAMAs.size() == 1) {
                final PngChunkGama pngChunkgAMA = (PngChunkGama) gAMAs.get(0);
View Full Code Here

Examples of org.apache.sanselan.formats.png.chunks.PNGChunkiCCP

            int CRC = read4Bytes("CRC", is, "Not a Valid PNG File");

            if (keep)
            {
                if (chunkType == iCCP)
                    result.add(new PNGChunkiCCP(length, chunkType, CRC, bytes));
                else if (chunkType == tEXt)
                    result.add(new PNGChunktEXt(length, chunkType, CRC, bytes));
                else if (chunkType == zTXt)
                    result.add(new PNGChunkzTXt(length, chunkType, CRC, bytes));
                else if (chunkType == IHDR)
View Full Code Here

Examples of org.apache.sanselan.formats.png.chunks.PNGChunkiCCP

        if (chunks.size() > 1)
            throw new ImageReadException(
                    "PNG contains more than one ICC Profile ");

        PNGChunkiCCP pngChunkiCCP = (PNGChunkiCCP) chunks.get(0);
        byte bytes[] = pngChunkiCCP.UncompressedProfile;

        return (bytes);
    }
View Full Code Here

Examples of org.apache.sanselan.formats.png.chunks.PNGChunkiCCP

            } else if (iCCPs.size() == 1)
            {
                if (debug)
                    System.out.println("iCCP.");

                PNGChunkiCCP pngChunkiCCP = (PNGChunkiCCP) iCCPs.get(0);
                byte bytes[] = pngChunkiCCP.UncompressedProfile;

                icc_profile = ICC_Profile.getInstance(bytes);
            } else if (gAMAs.size() == 1)
            {
View Full Code Here

Examples of org.apache.sanselan.formats.png.chunks.PNGChunkiCCP

      int CRC = read4Bytes("CRC", is, "Not a Valid PNG File");

      if (keep)
      {
        if (chunkType == iCCP)
          result.add(new PNGChunkiCCP(length, chunkType, CRC, bytes));
        else if (chunkType == tEXt)
          result.add(new PNGChunktEXt(length, chunkType, CRC, bytes));
        else if (chunkType == zTXt)
          result.add(new PNGChunkzTXt(length, chunkType, CRC, bytes));
        else if (chunkType == IHDR)
View Full Code Here

Examples of org.apache.sanselan.formats.png.chunks.PNGChunkiCCP

    if (chunks.size() > 1)
      throw new ImageReadException(
          "PNG contains more than one ICC Profile ");

    PNGChunkiCCP pngChunkiCCP = (PNGChunkiCCP) chunks.get(0);
    byte bytes[] = pngChunkiCCP.UncompressedProfile;

    return (bytes);
  }
View Full Code Here

Examples of org.apache.sanselan.formats.png.chunks.PNGChunkiCCP

      } else if (iCCPs.size() == 1)
      {
        if (debug)
          System.out.println("iCCP.");

        PNGChunkiCCP pngChunkiCCP = (PNGChunkiCCP) iCCPs.get(0);
        byte bytes[] = pngChunkiCCP.UncompressedProfile;

        icc_profile = ICC_Profile.getInstance(bytes);
      } else if (gAMAs.size() == 1)
      {
View Full Code Here

Examples of org.apache.sanselan.formats.png.chunks.PNGChunkiCCP

      int CRC = read4Bytes("CRC", is, "Not a Valid PNG File");

      if (keep)
      {
        if (chunkType == iCCP)
          result.add(new PNGChunkiCCP(length, chunkType, CRC, bytes));
        else if (chunkType == tEXt)
          result.add(new PNGChunktEXt(length, chunkType, CRC, bytes));
        else if (chunkType == zTXt)
          result.add(new PNGChunkzTXt(length, chunkType, CRC, bytes));
        else if (chunkType == IHDR)
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.