org.salespointframework.desktop.imagefilter
Class FadingEdgeFilter
java.lang.Object
java.awt.image.ImageFilter
java.awt.image.RGBImageFilter
org.salespointframework.desktop.imagefilter.FadingEdgeFilter
- All Implemented Interfaces:
- java.awt.image.ImageConsumer, java.lang.Cloneable
public class FadingEdgeFilter
- extends java.awt.image.RGBImageFilter
rounds the image corners and applies a linear fading on edges
- Since:
- 4.0
- Author:
- Thomas Kissinger
Fields inherited from class java.awt.image.RGBImageFilter |
canFilterIndexColorModel, newmodel, origmodel |
Fields inherited from class java.awt.image.ImageFilter |
consumer |
Fields inherited from interface java.awt.image.ImageConsumer |
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT |
Constructor Summary |
FadingEdgeFilter(int width,
int height,
int arc)
default constructor |
Method Summary |
int |
filterRGB(int x,
int y,
int rgb)
|
Methods inherited from class java.awt.image.RGBImageFilter |
filterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModel |
Methods inherited from class java.awt.image.ImageFilter |
clone, getFilterInstance, imageComplete, resendTopDownLeftRight, setDimensions, setHints, setProperties |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FadingEdgeFilter
public FadingEdgeFilter(int width,
int height,
int arc)
- default constructor
- Parameters:
width
- image widthheight
- image heightarc
- arc size
filterRGB
public int filterRGB(int x,
int y,
int rgb)
- Specified by:
filterRGB
in class java.awt.image.RGBImageFilter