类 PixelUtils


  • public class PixelUtils
    extends Object
    Some more useful math functions for image processing. These are becoming obsolete as we move to Java2D. Use MiscComposite instead.
    • 构造器详细资料

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