public class RMEmbossEffect extends RMImageEffect
RMImageEffect.BoxKernel, RMImageEffect.ConeKernel, RMImageEffect.GaussianKernel
Constructor and Description |
---|
RMEmbossEffect()
Creates a new emboss effect.
|
RMEmbossEffect(float altitude,
float azimuth,
int radius)
Creates a new emboss effect with given altitude, azimuth and radius.
|
Modifier and Type | Method and Description |
---|---|
RMEmbossEffect |
deriveEffect(float newAltitude,
float newAzimuth)
Derive with new altitude and azimuth.
|
RMEmbossEffect |
deriveEffect(int newRadius)
Derive with new radius.
|
void |
emboss(java.awt.image.BufferedImage source,
java.awt.image.BufferedImage bump)
Emboss a 24 bit source image according to a bump map.
|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
java.lang.Object |
fromXML(XMLArchiver anArchiver,
XMLElement anElement)
XML unarchival.
|
float |
getAltitude()
Returns altitude of light source.
|
float |
getAzimuth()
Returns angle of light source.
|
java.awt.image.BufferedImage |
getImage(RMShape aShape)
Creates effect image
|
int |
getRadius()
Returns radius of edge rounding.
|
void |
isolateHeightSample(int[] bumpPixels,
int w,
int h)
Converts the argb bumpSamples into an array of signed ints representing the height.
|
void |
paint(RMShapePainter aPntr,
RMShape aShape)
Render this fill in a shape painter.
|
XMLElement |
toXML(XMLArchiver anArchiver)
XML archival.
|
clone, getBlurredImage, getBlurredImage, getCachedImage, getShapeImage, reset
deepChange, getBounds, getName, isEnabled, propertyChange, setEnabled, toString
public RMEmbossEffect()
public RMEmbossEffect(float altitude, float azimuth, int radius)
public float getAltitude()
public float getAzimuth()
public int getRadius()
public RMEmbossEffect deriveEffect(float newAltitude, float newAzimuth)
public RMEmbossEffect deriveEffect(int newRadius)
public java.awt.image.BufferedImage getImage(RMShape aShape)
getImage
in class RMImageEffect
public void emboss(java.awt.image.BufferedImage source, java.awt.image.BufferedImage bump)
public void isolateHeightSample(int[] bumpPixels, int w, int h)
public void paint(RMShapePainter aPntr, RMShape aShape)
public boolean equals(java.lang.Object anObj)
public XMLElement toXML(XMLArchiver anArchiver)