public class EmbossOp extends AbstractBufferedImageOp
EmbossOp
implements embossing of an image against another
image, the so called bump image. The embossing algorithm works like this :
E: ax + bx + cx + d = 0
where a is
the luminance difference between pixels above and below the
current pixel, b is the luminance difference between pixels left
and right of the current pixel and c is constant relative to
the filtersize.
The emobossing area is the smaller of the bump and the image to emboss. You will get the best results from using an image as the bump image and some monochromatic image as the image to emboss.
Constructor and Description |
---|
EmbossOp(java.awt.image.BufferedImage bump,
float azimut,
float elevation,
float filtersize)
Creates a new
EmbossOp filter instance with the given
parameters for embossing. |
createCompatibleDestImage, filter, getBounds2D, getPoint2D, getRenderingHints
public EmbossOp(java.awt.image.BufferedImage bump, float azimut, float elevation, float filtersize)
EmbossOp
filter instance with the given
parameters for embossing. The bump image is copied into the instance
so that subsequent changes to the bump image do not have an effect on
the embossing operation.bump
- the image being used for the 'bump'azimut
- the light direction azimut in degrees.elevation
- the light direction elevation in degrees.filtersize
- the filtersize for the embossing.java.lang.IllegalArgumentException
- if any of the azimut, elevation or
filtersize arguments is negative or Float.NaN
.java.lang.NullPointerException
- if bump is null.Copyright © 2010 - 2020 Adobe. All Rights Reserved