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

How to use
abs
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.abs (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: org.apache.xmlgraphics/batik-codec

/**
 * The Paeth predictor routine used in PNG encoding.  This routine
 * is included as a convenience to subclasses that override the
 * <code>filterRow</code> method.
 */
public static final int paethPredictor(int a, int b, int c) {
  int p = a + b - c;
  int pa = abs(p - a);
  int pb = abs(p - b);
  int pc = abs(p - c);
  if ((pa <= pb) && (pa <= pc)) {
    return a;
  } else if (pb <= pc) {
    return b;
  } else {
    return c;
  }
}
origin: liuyueyi/quick-media

/**
 * The Paeth predictor routine used in PNG encoding.  This routine
 * is included as a convenience to subclasses that override the
 * <code>filterRow</code> method.
 */
public static final int paethPredictor(int a, int b, int c) {
  int p = a + b - c;
  int pa = abs(p - a);
  int pb = abs(p - b);
  int pc = abs(p - c);
  if ((pa <= pb) && (pa <= pc)) {
    return a;
  } else if (pb <= pc) {
    return b;
  } else {
    return c;
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * The Paeth predictor routine used in PNG encoding.  This routine
 * is included as a convenience to subclasses that override the
 * <code>filterRow</code> method.
 */
public static final int paethPredictor(int a, int b, int c) {
  int p = a + b - c;
  int pa = abs(p - a);
  int pb = abs(p - b);
  int pc = abs(p - c);
  if ((pa <= pb) && (pa <= pc)) {
    return a;
  } else if (pb <= pc) {
    return b;
  } else {
    return c;
  }
}
origin: apache/batik

/**
 * The Paeth predictor routine used in PNG encoding.  This routine
 * is included as a convenience to subclasses that override the
 * <code>filterRow</code> method.
 */
public static final int paethPredictor(int a, int b, int c) {
  int p = a + b - c;
  int pa = abs(p - a);
  int pb = abs(p - b);
  int pc = abs(p - c);
  if ((pa <= pb) && (pa <= pc)) {
    return a;
  } else if (pb <= pc) {
    return b;
  } else {
    return c;
  }
}
org.apache.batik.ext.awt.image.codec.pngPNGEncodeParamabs

Javadoc

An abs() function for use by the Paeth predictor.

Popular methods of PNGEncodeParam

  • 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
  • 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

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • onRequestPermissionsResult (Fragment)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
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