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

How to use
getCompressedText
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.getCompressedText (Showing top 4 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: liuyueyi/quick-media

private void writeZTXT() throws IOException {
  if (param.isCompressedTextSet()) {
    String[] text = param.getCompressedText();
    for (int i = 0; i < text.length/2; i++) {
      byte[] keyword = text[2*i].getBytes();
      byte[] value = text[2*i + 1].getBytes();
      ChunkStream cs = new ChunkStream("zTXt");
      cs.write(keyword, 0, Math.min(keyword.length, 79));
      cs.write(0);
      cs.write(0);
      DeflaterOutputStream dos = new DeflaterOutputStream(cs);
      dos.write(value);
      dos.finish();
      dos.close();
      cs.writeToStream(dataOutput);
      cs.close();
    }
  }
}
origin: apache/batik

private void writeZTXT() throws IOException {
  if (param.isCompressedTextSet()) {
    String[] text = param.getCompressedText();
    for (int i = 0; i < text.length/2; i++) {
      byte[] keyword = text[2*i].getBytes();
      byte[] value = text[2*i + 1].getBytes();
      ChunkStream cs = new ChunkStream("zTXt");
      cs.write(keyword, 0, Math.min(keyword.length, 79));
      cs.write(0);
      cs.write(0);
      DeflaterOutputStream dos = new DeflaterOutputStream(cs);
      dos.write(value);
      dos.finish();
      dos.close();
      cs.writeToStream(dataOutput);
      cs.close();
    }
  }
}
origin: org.apache.xmlgraphics/batik-codec

private void writeZTXT() throws IOException {
  if (param.isCompressedTextSet()) {
    String[] text = param.getCompressedText();
    for (int i = 0; i < text.length/2; i++) {
      byte[] keyword = text[2*i].getBytes();
      byte[] value = text[2*i + 1].getBytes();
      ChunkStream cs = new ChunkStream("zTXt");
      cs.write(keyword, 0, Math.min(keyword.length, 79));
      cs.write(0);
      cs.write(0);
      DeflaterOutputStream dos = new DeflaterOutputStream(cs);
      dos.write(value);
      dos.finish();
      dos.close();
      cs.writeToStream(dataOutput);
      cs.close();
    }
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

private void writeZTXT() throws IOException {
  if (param.isCompressedTextSet()) {
    String[] text = param.getCompressedText();
    for (int i = 0; i < text.length/2; i++) {
      byte[] keyword = text[2*i].getBytes();
      byte[] value = text[2*i + 1].getBytes();
      ChunkStream cs = new ChunkStream("zTXt");
      cs.write(keyword, 0, Math.min(keyword.length, 79));
      cs.write(0);
      cs.write(0);
      DeflaterOutputStream dos = new DeflaterOutputStream(cs);
      dos.write(value);
      dos.finish();
      dos.close();
      cs.writeToStream(dataOutput);
      cs.close();
    }
  }
}
org.apache.batik.ext.awt.image.codec.pngPNGEncodeParamgetCompressedText

Javadoc

Returns the text strings to be stored in compressed form with this image as an array of Strings.

If the compressed text strings have not previously been set, or have been unset, an IllegalStateException will be thrown.

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
  • 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
  • getPhysicalDimension
    Returns the physical dimension information to be stored with this image. If the physical dimension i
  • getPaletteHistogram,
  • getPhysicalDimension,
  • getPrivateChunkData,
  • getPrivateChunkType,
  • getSRGBIntent,
  • getSignificantBits,
  • getText,
  • isBackgroundSet,
  • isChromaticitySet

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • orElseThrow (Optional)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
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