public class EmbossOp extends AbstractBufferedImageOp
EmbossOpimplements embossing of an image against another image, the so called bump image. The embossing algorithm works like this :
E: ax + bx + cx + d = 0where 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|
Creates a new
public EmbossOp(java.awt.image.BufferedImage bump, float azimut, float elevation, float filtersize)
EmbossOpfilter 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
java.lang.NullPointerException- if bump is null.
Copyright © 2010 - 2020 Adobe. All Rights Reserved