Class PixelUtils


  • public class PixelUtils
    extends java.lang.Object
    Some more useful math functions for image processing. These are becoming obsolete as we move to Java2D. Use MiscComposite instead.
    • Constructor Summary

      Constructors 
      Constructor Description
      PixelUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int brightness​(int rgb)  
      static int clamp​(int c)
      Clamp a value to the range 0..255.
      static int combinePixels​(int rgb1, int rgb2, int op)  
      static int combinePixels​(int rgb1, int rgb2, int op, int extraAlpha)  
      static int combinePixels​(int rgb1, int rgb2, int op, int extraAlpha, int channelMask)  
      static int interpolate​(int v1, int v2, float f)  
      static boolean nearColors​(int rgb1, int rgb2, int tolerance)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait