Package ca.cgjennings.graphics.filters
Class TintFilter.ScaledTintFilter
- java.lang.Object
-
- ca.cgjennings.graphics.filters.AbstractImageFilter
-
- ca.cgjennings.graphics.filters.AbstractPixelwiseFilter
-
- ca.cgjennings.graphics.filters.AbstractTintingFilter
-
- ca.cgjennings.graphics.filters.TintOverlayFilter
-
- ca.cgjennings.graphics.filters.TintFilter
-
- ca.cgjennings.graphics.filters.TintFilter.ScaledTintFilter
-
- All Implemented Interfaces:
TintingFilter
,java.awt.image.BufferedImageOp
- Enclosing class:
- TintFilter
public static class TintFilter.ScaledTintFilter extends TintFilter
ATintFilter
that scales its saturation and brightness. For example, if the scale is 2, then a factor of 0.5 is scaled to 1. This is useful when reading values from aTintPanel
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ca.cgjennings.graphics.filters.TintFilter
TintFilter.ScaledTintFilter
-
-
Constructor Summary
Constructors Constructor Description ScaledTintFilter()
ScaledTintFilter(float h, float s, float b)
ScaledTintFilter(float h, float s, float b, float sScale, float bScale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
filterPixels(int[] argb)
float
getBScale()
float
getSScale()
void
setBScale(float bScale)
void
setSScale(float sScale)
-
Methods inherited from class ca.cgjennings.graphics.filters.TintFilter
adjustColor, filterPixels, isIdentity, setFactors
-
Methods inherited from class ca.cgjennings.graphics.filters.AbstractTintingFilter
getBFactor, getHFactor, getSFactor, setBFactor, setHFactor, setSFactor
-
Methods inherited from class ca.cgjennings.graphics.filters.AbstractPixelwiseFilter
filter, filter, filterPixel, workFactor
-
Methods inherited from class ca.cgjennings.graphics.filters.AbstractImageFilter
clamp, clamp, clamp, clampBoth, createCompatibleDestImage, fA, fB, fG, fR, getARGB, getARGB, getARGBSynch, getBounds2D, getPoint2D, getRenderingHints, iA, iB, iG, iR, setARGB, setARGB, setARGBSynch
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.awt.image.BufferedImageOp
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints
-
Methods inherited from interface ca.cgjennings.graphics.filters.TintingFilter
filter
-
-