类 ShadeFilter

  • 所有已实现的接口:
    java.awt.image.BufferedImageOp, java.lang.Cloneable

    public class ShadeFilter
    extends WholeImageFilter
    • 字段详细资料

      • COLORS_FROM_IMAGE

        public static final int COLORS_FROM_IMAGE
        另请参阅:
        常量字段值
      • COLORS_CONSTANT

        public static final int COLORS_CONSTANT
        另请参阅:
        常量字段值
      • BUMPS_FROM_IMAGE

        public static final int BUMPS_FROM_IMAGE
        另请参阅:
        常量字段值
      • BUMPS_FROM_IMAGE_ALPHA

        public static final int BUMPS_FROM_IMAGE_ALPHA
        另请参阅:
        常量字段值
      • BUMPS_FROM_MAP

        public static final int BUMPS_FROM_MAP
        另请参阅:
        常量字段值
      • BUMPS_FROM_BEVEL

        public static final int BUMPS_FROM_BEVEL
        另请参阅:
        常量字段值
    • 构造器详细资料

      • ShadeFilter

        public ShadeFilter()
    • 方法详细资料

      • setBumpFunction

        public void setBumpFunction​(Function2D bumpFunction)
      • getBumpFunction

        public Function2D getBumpFunction()
      • setBumpHeight

        public void setBumpHeight​(float bumpHeight)
      • getBumpHeight

        public float getBumpHeight()
      • setBumpSoftness

        public void setBumpSoftness​(float bumpSoftness)
      • getBumpSoftness

        public float getBumpSoftness()
      • setEnvironmentMap

        public void setEnvironmentMap​(java.awt.image.BufferedImage environmentMap)
      • getEnvironmentMap

        public java.awt.image.BufferedImage getEnvironmentMap()
      • setBumpSource

        public void setBumpSource​(int bumpSource)
      • getBumpSource

        public int getBumpSource()
      • setFromRGB

        protected void setFromRGB​(Color4f c,
                                  int argb)
      • filterPixels

        protected int[] filterPixels​(int width,
                                     int height,
                                     int[] inPixels,
                                     java.awt.Rectangle transformedSpace)
        从类复制的说明: WholeImageFilter
        Actually filter the pixels.
        指定者:
        filterPixels 在类中 WholeImageFilter
        参数:
        width - the image width
        height - the image height
        inPixels - the image pixels
        transformedSpace - the output bounds
        返回:
        the output pixels
      • toString

        public java.lang.String toString()
        覆盖:
        toString 在类中 java.lang.Object