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

How to use
getSignificantBits
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.getSignificantBits (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 writeSBIT() throws IOException {
  if (param.isSignificantBitsSet()) {
    ChunkStream cs = new ChunkStream("sBIT");
    int[] significantBits = param.getSignificantBits();
    int len = significantBits.length;
    for (int i = 0; i < len; i++) {
      cs.writeByte(significantBits[i]);
    }
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: org.apache.xmlgraphics/batik-codec

private void writeSBIT() throws IOException {
  if (param.isSignificantBitsSet()) {
    ChunkStream cs = new ChunkStream("sBIT");
    int[] significantBits = param.getSignificantBits();
    int len = significantBits.length;
    for (int significantBit : significantBits) {
      cs.writeByte(significantBit);
    }
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

private void writeSBIT() throws IOException {
  if (param.isSignificantBitsSet()) {
    ChunkStream cs = new ChunkStream("sBIT");
    int[] significantBits = param.getSignificantBits();
    int len = significantBits.length;
    for (int i = 0; i < len; i++) {
      cs.writeByte(significantBits[i]);
    }
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: apache/batik

private void writeSBIT() throws IOException {
  if (param.isSignificantBitsSet()) {
    ChunkStream cs = new ChunkStream("sBIT");
    int[] significantBits = param.getSignificantBits();
    int len = significantBits.length;
    for (int significantBit : significantBits) {
      cs.writeByte(significantBit);
    }
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
org.apache.batik.ext.awt.image.codec.pngPNGEncodeParamgetSignificantBits

Javadoc

Returns the number of significant bits for each band of the image.

If the significant bits values 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
  • 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,
  • getText,
  • isBackgroundSet,
  • isChromaticitySet

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • putExtra (Intent)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • ImageIO (javax.imageio)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
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