类 TransitionFilter

  • 所有已实现的接口:
    BufferedImageOp, Cloneable

    public class TransitionFilter
    extends AbstractBufferedImageOp
    A filter which uses another filter to perform a transition. e.g. to create a blur transition, you could write: new TransitionFilter( new BoxBlurFilter(), "radius", 0, 100 );
    • 字段详细资料

      • filter

        protected BufferedImageOp filter
        The filter used for the transition.
      • minValue

        protected float minValue
        The start value for the filter property.
      • maxValue

        protected float maxValue
        The end value for the filter property.
    • 构造器详细资料

      • TransitionFilter

        public TransitionFilter​(BufferedImageOp filter,
                                String property,
                                float minValue,
                                float maxValue)
        Construct a TransitionFilter.
        参数:
        filter - the filter to use
        property - the filter property which is changed over the transition
        minValue - the start value for the filter property
        maxValue - the end value for the filter property
    • 方法详细资料

      • setTransition

        public void setTransition​(float transition)
        Set the transition of the image in the range 0..1.
        参数:
        transition - the transition min-value 0 max-value 1
        另请参阅:
        getTransition()
      • getTransition

        public float getTransition()
        Get the transition of the image.
        返回:
        the transition
        另请参阅:
        setTransition(float)
      • setDestination

        public void setDestination​(BufferedImage destination)
        Set the destination image.
        参数:
        destination - the destination image
        另请参阅:
        getDestination()
      • prepareFilter

        public void prepareFilter​(float transition)
        Prepare the filter for the transiton at a given time. The default implementation sets the given filter property, but you could override this method to make other changes.
        参数:
        transition - the transition time in the range 0 - 1