类 LightFilter

  • 所有已实现的接口:
    java.awt.image.BufferedImageOp, java.lang.Cloneable
    直接已知子类:
    ChromeFilter

    public class LightFilter
    extends WholeImageFilter
    A filter which produces lighting and embossing effects.
    • 字段详细资料

      • COLORS_FROM_IMAGE

        public static final int COLORS_FROM_IMAGE
        Take the output colors from the input image.
        另请参阅:
        常量字段值
      • COLORS_CONSTANT

        public static final int COLORS_CONSTANT
        Use constant material color.
        另请参阅:
        常量字段值
      • BUMPS_FROM_IMAGE

        public static final int BUMPS_FROM_IMAGE
        Use the input image brightness as the bump map.
        另请参阅:
        常量字段值
      • BUMPS_FROM_IMAGE_ALPHA

        public static final int BUMPS_FROM_IMAGE_ALPHA
        Use the input image alpha as the bump map.
        另请参阅:
        常量字段值
      • BUMPS_FROM_MAP

        public static final int BUMPS_FROM_MAP
        Use a separate image alpha channel as the bump map.
        另请参阅:
        常量字段值
      • BUMPS_FROM_BEVEL

        public static final int BUMPS_FROM_BEVEL
        Use a custom function as the bump map.
        另请参阅:
        常量字段值
    • 构造器详细资料

      • LightFilter

        public LightFilter()
    • 方法详细资料

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

        public void setBumpShape​(int bumpShape)
      • getBumpShape

        public int getBumpShape()
      • setViewDistance

        public void setViewDistance​(float viewDistance)
      • getViewDistance

        public float getViewDistance()
      • setEnvironmentMap

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

        public java.awt.Image getEnvironmentMap()
      • setColorSource

        public void setColorSource​(int colorSource)
      • getColorSource

        public int getColorSource()
      • setBumpSource

        public void setBumpSource​(int bumpSource)
      • getBumpSource

        public int getBumpSource()
      • setDiffuseColor

        public void setDiffuseColor​(int diffuseColor)
      • getDiffuseColor

        public int getDiffuseColor()
      • getLights

        public java.util.Vector getLights()
      • 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