Examples of PNGChunkiTXt


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

        else if (chunkType == IDAT)
          result.add(new PNGChunkIDAT(length, chunkType, CRC, bytes));
        else if (chunkType == gAMA)
          result.add(new PNGChunkgAMA(length, chunkType, CRC, bytes));
        else if (chunkType == iTXt)
          result.add(new PNGChunkiTXt(length, chunkType, CRC, bytes));
        else
          result.add(new PNGChunk(length, chunkType, CRC, bytes));

        if (returnAfterFirst)
          return result;
View Full Code Here

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

        comments.add(pngChunkzTXt.keyword + ": " + pngChunkzTXt.text);
        textChunks.add(pngChunkzTXt.getContents());
      }
      for (int i = 0; i < iTXts.size(); i++)
      {
        PNGChunkiTXt pngChunkiTXt = (PNGChunkiTXt) iTXts.get(i);
        comments.add(pngChunkiTXt.keyword + ": " + pngChunkiTXt.text);
        textChunks.add(pngChunkiTXt.getContents());
      }

      int BitsPerPixel = pngChunkIHDR.bitDepth
          * samplesPerPixel(pngChunkIHDR.colorType);
      ImageFormat Format = ImageFormat.IMAGE_FORMAT_PNG;
View Full Code Here

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

                else if (chunkType == IDAT)
                    result.add(new PNGChunkIDAT(length, chunkType, CRC, bytes));
                else if (chunkType == gAMA)
                    result.add(new PNGChunkgAMA(length, chunkType, CRC, bytes));
                else if (chunkType == iTXt)
                    result.add(new PNGChunkiTXt(length, chunkType, CRC, bytes));
                else
                    result.add(new PNGChunk(length, chunkType, CRC, bytes));

                if (returnAfterFirst)
                    return result;
View Full Code Here

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

                comments.add(pngChunkzTXt.keyword + ": " + pngChunkzTXt.text);
                textChunks.add(pngChunkzTXt.getContents());
            }
            for (int i = 0; i < iTXts.size(); i++)
            {
                PNGChunkiTXt pngChunkiTXt = (PNGChunkiTXt) iTXts.get(i);
                comments.add(pngChunkiTXt.keyword + ": " + pngChunkiTXt.text);
                textChunks.add(pngChunkiTXt.getContents());
            }

            int BitsPerPixel = pngChunkIHDR.bitDepth
                    * samplesPerPixel(pngChunkIHDR.colorType);
            ImageFormat Format = ImageFormat.IMAGE_FORMAT_PNG;
View Full Code Here

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

            return null;

        List xmpChunks = new ArrayList();
        for (int i = 0; i < chunks.size(); i++)
        {
            PNGChunkiTXt chunk = (PNGChunkiTXt) chunks.get(i);
            if (!chunk.getKeyword().equals(XMP_KEYWORD))
                continue;
            xmpChunks.add(chunk);
        }

        if (xmpChunks.size() < 1)
            return null;
        if (xmpChunks.size() > 1)
            throw new ImageReadException(
                    "PNG contains more than one XMP chunk.");

        PNGChunkiTXt chunk = (PNGChunkiTXt) xmpChunks.get(0);
        return chunk.getText();
    }
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.