Examples of PNGChunktEXt


Examples of ar.com.hjg.pngj.chunks.PngChunkTEXT

        String gridCellSzStr = String.format(Locale.US, "%.12f,%.12f", sampleGrid.getCellSize().y,
                sampleGrid.getCellSize().x);
        String offRoadDistStr = String.format(Locale.US, "%f",
                sampleGridRenderer.getOffRoadDistanceMeters(precisionMeters));

        PngChunkTEXT gridCornerChunk = new PngChunkTEXT(imgInfo);
        gridCornerChunk.setKeyVal(OTPA_GRID_CORNER, gridCornerStr);
        pw.getChunksList().queue(gridCornerChunk);
        PngChunkTEXT gridCellSzChunk = new PngChunkTEXT(imgInfo);
        gridCellSzChunk.setKeyVal(OTPA_GRID_CELL_SIZE, gridCellSzStr);
        pw.getChunksList().queue(gridCellSzChunk);
        PngChunkTEXT offRoadDistChunk = new PngChunkTEXT(imgInfo);
        offRoadDistChunk.setKeyVal(OTPA_OFFROAD_DIST, offRoadDistStr);
        pw.getChunksList().queue(offRoadDistChunk);

        double unit;
        switch (zDataType) {
        case TIME:
View Full Code Here

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

            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) {
                    result.add(new PngChunkIhdr(length, chunkType, crc, bytes));
                } else if (chunkType == ChunkType.PLTE.value) {
View Full Code Here

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

        final List<String> comments = new ArrayList<String>();
        final List<PngText> textChunks = new ArrayList<PngText>();

        for (PngChunk tEXt : tEXts) {
            final PngChunkText pngChunktEXt = (PngChunkText) tEXt;
            comments.add(pngChunktEXt.keyword + ": " + pngChunktEXt.text);
            textChunks.add(pngChunktEXt.getContents());
        }
        for (PngChunk zTXt : zTXts) {
            final PngChunkZtxt pngChunkzTXt = (PngChunkZtxt) zTXt;
            comments.add(pngChunkzTXt.keyword + ": " + pngChunkzTXt.text);
            textChunks.add(pngChunkzTXt.getContents());
View Full Code Here

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

            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)
                    result.add(new PNGChunkIHDR(length, chunkType, CRC, bytes));
                else if (chunkType == PLTE)
View Full Code Here

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

            ArrayList comments = new ArrayList();
            List textChunks = new ArrayList();

            for (int i = 0; i < tEXts.size(); i++)
            {
                PNGChunktEXt pngChunktEXt = (PNGChunktEXt) tEXts.get(i);
                comments.add(pngChunktEXt.keyword + ": " + pngChunktEXt.text);
                textChunks.add(pngChunktEXt.getContents());
            }
            for (int i = 0; i < zTXts.size(); i++)
            {
                PNGChunkzTXt pngChunkzTXt = (PNGChunkzTXt) zTXts.get(i);
                comments.add(pngChunkzTXt.keyword + ": " + pngChunkzTXt.text);
View Full Code Here

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

      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)
          result.add(new PNGChunkIHDR(length, chunkType, CRC, bytes));
        else if (chunkType == PLTE)
View Full Code Here

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

      ArrayList Comments = new ArrayList();

      for (int i = 0; i < tEXts.size(); i++)
      {
        PNGChunktEXt pngChunktEXt = (PNGChunktEXt) tEXts.get(i);
        Comments.add(pngChunktEXt.Keyword + ": " + pngChunktEXt.Text);
      }
      for (int i = 0; i < zTXts.size(); i++)
      {
        PNGChunkzTXt pngChunkzTXt = (PNGChunkzTXt) zTXts.get(i);
View Full Code Here

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

      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)
          result.add(new PNGChunkIHDR(length, chunkType, CRC, bytes));
        else if (chunkType == PLTE)
View Full Code Here

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

      ArrayList comments = new ArrayList();
      List textChunks = new ArrayList();

      for (int i = 0; i < tEXts.size(); i++)
      {
        PNGChunktEXt pngChunktEXt = (PNGChunktEXt) tEXts.get(i);
        comments.add(pngChunktEXt.keyword + ": " + pngChunktEXt.text);
        textChunks.add(pngChunktEXt.getContents());
      }
      for (int i = 0; i < zTXts.size(); i++)
      {
        PNGChunkzTXt pngChunkzTXt = (PNGChunkzTXt) zTXts.get(i);
        comments.add(pngChunkzTXt.keyword + ": " + pngChunkzTXt.text);
View Full Code Here

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

      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)
          result.add(new PNGChunkIHDR(length, chunkType, CRC, bytes));
        else if (chunkType == PLTE)
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.