类 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.
    • 构造器概要

      构造器 
      构造器 说明
      PixelUtils()  
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      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)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • PixelUtils

        public PixelUtils()
    • 方法详细资料

      • clamp

        public static int clamp​(int c)
        Clamp a value to the range 0..255
      • interpolate

        public static int interpolate​(int v1,
                                      int v2,
                                      float f)
      • brightness

        public static int brightness​(int rgb)
      • nearColors

        public static boolean nearColors​(int rgb1,
                                         int rgb2,
                                         int tolerance)
      • combinePixels

        public static int combinePixels​(int rgb1,
                                        int rgb2,
                                        int op)
      • combinePixels

        public static int combinePixels​(int rgb1,
                                        int rgb2,
                                        int op,
                                        int extraAlpha,
                                        int channelMask)
      • combinePixels

        public static int combinePixels​(int rgb1,
                                        int rgb2,
                                        int op,
                                        int extraAlpha)