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(RXArchiver anArchiver,
RXElement 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.
|
RXElement |
toXML(RXArchiver anArchiver)
XML archival.
|
clone, getBlurredImage, getBlurredImage, getCachedImage, getShapeImage, reset
deepChange, getBounds, getName, isEnabled, propertyChange, setEnabled, toString
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
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)
equals
in class java.lang.Object
public RXElement toXML(RXArchiver anArchiver)
toXML
in interface Archivable
toXML
in class RMEffect
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)
fromXML
in interface Archivable
fromXML
in class RMEffect