Tabnine Logo
PNGEncodeParam.getPrivateChunkData
Code IndexAdd Tabnine to your IDE (free)

How to use
getPrivateChunkData
method
in
org.apache.batik.ext.awt.image.codec.png.PNGEncodeParam

Best Java code snippets using org.apache.batik.ext.awt.image.codec.png.PNGEncodeParam.getPrivateChunkData (Showing top 8 results out of 315)

origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Remove all private chunks associated with this parameter instance
 * whose 'safe-to-copy' bit is not set.  This may be advisable when
 * transcoding PNG images.
 */
public synchronized void removeUnsafeToCopyPrivateChunks() {
  List newChunkType = new ArrayList();
  List newChunkData = new ArrayList();
  int len = getNumPrivateChunks();
  for (int i = 0; i < len; i++) {
    String type = getPrivateChunkType(i);
    char lastChar = type.charAt(3);
    if (lastChar >= 'a' && lastChar <= 'z') {
      newChunkType.add(type);
      newChunkData.add(getPrivateChunkData(i));
    }
  }
  chunkType = newChunkType;
  chunkData = newChunkData;
}
origin: liuyueyi/quick-media

/**
 * Remove all private chunks associated with this parameter instance
 * whose 'safe-to-copy' bit is not set.  This may be advisable when
 * transcoding PNG images.
 */
public synchronized void removeUnsafeToCopyPrivateChunks() {
  List newChunkType = new ArrayList();
  List newChunkData = new ArrayList();
  int len = getNumPrivateChunks();
  for (int i = 0; i < len; i++) {
    String type = getPrivateChunkType(i);
    char lastChar = type.charAt(3);
    if (lastChar >= 'a' && lastChar <= 'z') {
      newChunkType.add(type);
      newChunkData.add(getPrivateChunkData(i));
    }
  }
  chunkType = newChunkType;
  chunkData = newChunkData;
}
origin: org.apache.xmlgraphics/batik-codec

/**
 * Remove all private chunks associated with this parameter instance
 * whose 'safe-to-copy' bit is not set.  This may be advisable when
 * transcoding PNG images.
 */
public synchronized void removeUnsafeToCopyPrivateChunks() {
  List newChunkType = new ArrayList();
  List newChunkData = new ArrayList();
  int len = getNumPrivateChunks();
  for (int i = 0; i < len; i++) {
    String type = getPrivateChunkType(i);
    char lastChar = type.charAt(3);
    if (lastChar >= 'a' && lastChar <= 'z') {
      newChunkType.add(type);
      newChunkData.add(getPrivateChunkData(i));
    }
  }
  chunkType = newChunkType;
  chunkData = newChunkData;
}
origin: apache/batik

/**
 * Remove all private chunks associated with this parameter instance
 * whose 'safe-to-copy' bit is not set.  This may be advisable when
 * transcoding PNG images.
 */
public synchronized void removeUnsafeToCopyPrivateChunks() {
  List newChunkType = new ArrayList();
  List newChunkData = new ArrayList();
  int len = getNumPrivateChunks();
  for (int i = 0; i < len; i++) {
    String type = getPrivateChunkType(i);
    char lastChar = type.charAt(3);
    if (lastChar >= 'a' && lastChar <= 'z') {
      newChunkType.add(type);
      newChunkData.add(getPrivateChunkData(i));
    }
  }
  chunkType = newChunkType;
  chunkData = newChunkData;
}
origin: apache/batik

private void writePrivateChunks() throws IOException {
  int numChunks = param.getNumPrivateChunks();
  for (int i = 0; i < numChunks; i++) {
    String type = param.getPrivateChunkType(i);
    byte[] data = param.getPrivateChunkData(i);
    ChunkStream cs = new ChunkStream(type);
    cs.write(data);
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: org.apache.xmlgraphics/batik-codec

private void writePrivateChunks() throws IOException {
  int numChunks = param.getNumPrivateChunks();
  for (int i = 0; i < numChunks; i++) {
    String type = param.getPrivateChunkType(i);
    byte[] data = param.getPrivateChunkData(i);
    ChunkStream cs = new ChunkStream(type);
    cs.write(data);
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: liuyueyi/quick-media

private void writePrivateChunks() throws IOException {
  int numChunks = param.getNumPrivateChunks();
  for (int i = 0; i < numChunks; i++) {
    String type = param.getPrivateChunkType(i);
    byte[] data = param.getPrivateChunkData(i);
    ChunkStream cs = new ChunkStream(type);
    cs.write(data);
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

private void writePrivateChunks() throws IOException {
  int numChunks = param.getNumPrivateChunks();
  for (int i = 0; i < numChunks; i++) {
    String type = param.getPrivateChunkType(i);
    byte[] data = param.getPrivateChunkData(i);
    ChunkStream cs = new ChunkStream(type);
    cs.write(data);
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
org.apache.batik.ext.awt.image.codec.pngPNGEncodeParamgetPrivateChunkData

Javadoc

Returns the data associated of the private chunk at a given index, as an array of bytes. The index must be smaller than the return value of getNumPrivateChunks.

Popular methods of PNGEncodeParam

  • abs
    An abs() function for use by the Paeth predictor.
  • addPrivateChunk
    Adds a private chunk, in binary form, to the list of chunks to be stored with this image.
  • filterRow
    Performs filtering on a row of an image. This method may be overridden in order to provide a custom
  • getChromaticity
    Returns the white point and primary chromaticities in CIE (x, y) space. See the documentation for th
  • getCompressedText
    Returns the text strings to be stored in compressed form with this image as an array of Strings. If
  • getDefaultEncodeParam
    Returns an instance of PNGEncodeParam.Palette,PNGEncodeParam.Gray, or PNGEncodeParam.RGB appropriate
  • getGamma
    Returns the file gamma value for the image. If the file gamma has not previously been set, or has be
  • getICCProfileData
    Returns the ICC profile data to be stored with this image. If the ICC profile has not previously bee
  • getInterlacing
    Returns true if Adam7 interlacing will be used.
  • getModificationTime
    Returns the modification time to be stored with this image. If the bit depth has not previously been
  • getNumPrivateChunks
    Returns the number of private chunks to be written to the output file.
  • getPaletteHistogram
    Returns the palette histogram to be stored with this image. If the histogram has not previously been
  • getNumPrivateChunks,
  • getPaletteHistogram,
  • getPhysicalDimension,
  • getPrivateChunkType,
  • getSRGBIntent,
  • getSignificantBits,
  • getText,
  • isBackgroundSet,
  • isChromaticitySet

Popular in Java

  • Running tasks concurrently on multiple threads
  • findViewById (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JList (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now