Codota Logo
PNGEncodeParam.setPaletteHistogram
Code IndexAdd Codota to your IDE (free)

How to use
setPaletteHistogram
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.setPaletteHistogram (Showing top 8 results out of 315)

  • Common ways to obtain PNGEncodeParam
private void myMethod () {
PNGEncodeParam p =
  • Codota Iconnew PNGEncodeParam.RGB()
  • Codota Iconnew PNGEncodeParam.Palette()
  • Codota Iconnew PNGEncodeParam.Gray()
  • Smart code suggestions by Codota
}
origin: fr.avianey.apache-xmlgraphics/batik

private void parse_hIST_chunk(PNGChunk chunk) {
  if (redPalette == null) {
    String msg = PropertyUtil.getString("PNGImageDecoder18");
    throw new RuntimeException(msg);
  }
  int length = redPalette.length;
  int[] hist = new int[length];
  for (int i = 0; i < length; i++) {
    hist[i] = chunk.getInt2(2*i);
  }
  if (encodeParam != null) {
    encodeParam.setPaletteHistogram(hist);
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

private void parse_hIST_chunk(PNGChunk chunk) {
  if (redPalette == null) {
    String msg = PropertyUtil.getString("PNGImageDecoder18");
    throw new RuntimeException(msg);
  }
  int length = redPalette.length;
  int[] hist = new int[length];
  for (int i = 0; i < length; i++) {
    hist[i] = chunk.getInt2(2*i);
  }
  if (encodeParam != null) {
    encodeParam.setPaletteHistogram(hist);
  }
}
origin: apache/batik

private void parse_hIST_chunk(PNGChunk chunk) {
  if (redPalette == null) {
    String msg = PropertyUtil.getString("PNGImageDecoder18");
    throw new RuntimeException(msg);
  }
  int length = redPalette.length;
  int[] hist = new int[length];
  for (int i = 0; i < length; i++) {
    hist[i] = chunk.getInt2(2*i);
  }
  if (encodeParam != null) {
    encodeParam.setPaletteHistogram(hist);
  }
}
origin: liuyueyi/quick-media

private void parse_hIST_chunk(PNGChunk chunk) {
  if (redPalette == null) {
    String msg = PropertyUtil.getString("PNGImageDecoder18");
    throw new RuntimeException(msg);
  }
  int length = redPalette.length;
  int[] hist = new int[length];
  for (int i = 0; i < length; i++) {
    hist[i] = chunk.getInt2(2*i);
  }
  if (encodeParam != null) {
    encodeParam.setPaletteHistogram(hist);
  }
}
origin: org.apache.xmlgraphics/batik-codec

private void parse_hIST_chunk(PNGChunk chunk) {
  if (redPalette == null) {
    String msg = PropertyUtil.getString("PNGImageDecoder18");
    throw new RuntimeException(msg);
  }
  int length = redPalette.length;
  int[] hist = new int[length];
  for (int i = 0; i < length; i++) {
    hist[i] = chunk.getInt2(2*i);
  }
  if (encodeParam != null) {
    encodeParam.setPaletteHistogram(hist);
  }
}
origin: liuyueyi/quick-media

private void parse_hIST_chunk(PNGChunk chunk) {
  if (redPalette == null) {
    String msg = PropertyUtil.getString("PNGImageDecoder18");
    throw new RuntimeException(msg);
  }
  int length = redPalette.length;
  int[] hist = new int[length];
  for (int i = 0; i < length; i++) {
    hist[i] = chunk.getInt2(2*i);
  }
  if (encodeParam != null) {
    encodeParam.setPaletteHistogram(hist);
  }
}
origin: org.apache.xmlgraphics/batik-codec

private void parse_hIST_chunk(PNGChunk chunk) {
  if (redPalette == null) {
    String msg = PropertyUtil.getString("PNGImageDecoder18");
    throw new RuntimeException(msg);
  }
  int length = redPalette.length;
  int[] hist = new int[length];
  for (int i = 0; i < length; i++) {
    hist[i] = chunk.getInt2(2*i);
  }
  if (encodeParam != null) {
    encodeParam.setPaletteHistogram(hist);
  }
}
origin: apache/batik

private void parse_hIST_chunk(PNGChunk chunk) {
  if (redPalette == null) {
    String msg = PropertyUtil.getString("PNGImageDecoder18");
    throw new RuntimeException(msg);
  }
  int length = redPalette.length;
  int[] hist = new int[length];
  for (int i = 0; i < length; i++) {
    hist[i] = chunk.getInt2(2*i);
  }
  if (encodeParam != null) {
    encodeParam.setPaletteHistogram(hist);
  }
}
org.apache.batik.ext.awt.image.codec.pngPNGEncodeParamsetPaletteHistogram

Javadoc

Sets the palette histogram to be stored with this image. The histogram consists of an array of integers, one per palette entry.

The 'hIST' chunk will encode this information.

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,
  • getPrivateChunkData,
  • getPrivateChunkType,
  • getSRGBIntent,
  • getSignificantBits,
  • getText,
  • isBackgroundSet,
  • isChromaticitySet

Popular in Java

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • JCheckBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now