modules/graphics/src/main/java/com/sun/scenario/effect/SepiaTone.java
Print this page
*** 25,34 ****
--- 25,35 ----
package com.sun.scenario.effect;
import com.sun.javafx.geom.Rectangle;
import com.sun.javafx.geom.transform.BaseTransform;
+ import com.sun.scenario.effect.impl.state.RenderState;
/**
* A filter that produces a sepia tone effect, similar to antique photographs.
*/
public class SepiaTone extends CoreEffect {
*** 109,126 ****
float old = this.level;
this.level = level;
}
@Override
! protected Rectangle getInputClip(int inputIndex,
BaseTransform transform,
! Rectangle outputClip)
{
! // Trivially, this effect simply modifies the colors of the pixels
! // of the input on a 1:1 basis so the input clip is the same as the
! // output clip.
! return outputClip;
}
@Override
public boolean reducesOpaquePixels() {
final Effect input = getInput();
--- 110,126 ----
float old = this.level;
this.level = level;
}
@Override
! public RenderState getRenderState(FilterContext fctx,
BaseTransform transform,
! Rectangle outputClip,
! Object renderHelper,
! Effect defaultInput)
{
! return RenderState.RenderSpaceRenderState;
}
@Override
public boolean reducesOpaquePixels() {
final Effect input = getInput();