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(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML unarchival.
|
float |
getAltitude()
Returns altitude of light source.
|
float |
getAzimuth()
Returns angle of light source.
|
java.awt.image.BufferedImage |
getImage()
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(java.awt.Graphics2D aGraphics)
Render this fill in a Java2D Graphics2D.
|
com.reportmill.archiver.RXElement |
toXML(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML archival.
|
clone, getBlurredImage, getBlurredImage, getCachedImage, getShapeImage, propertyChange, setShape
getName, isEnabled, setEnabled
deriveFill, getBounds, getColor, getShape, hasAlpha, setColor, toString
addPropertyChangeListener, animUpdate, removePropertyChangeListener
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()
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(java.awt.Graphics2D aGraphics)
public boolean equals(java.lang.Object anObj)
public com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)