com.jhlabs.image
Class LightFilter.Light
java.lang.Object
com.jhlabs.image.LightFilter.Light
- LightFilter
- Cloneable
public static class LightFilter.Light
extends java.lang.Object
implements Cloneable
A class representing a light.
Light()
|
Light(float azimuth, float elevation, float intensity)
|
Light
public Light(float azimuth,
float elevation,
float intensity)
clone
public Object clone()
getAzimuth
public float getAzimuth()
getCentreX
public float getCentreX()
Get the centre of the light in the X direction as a proportion of the image size.
getCentreY
public float getCentreY()
Get the centre of the light in the Y direction as a proportion of the image size.
getColor
public int getColor()
getConeAngle
public float getConeAngle()
getDistance
public float getDistance()
getElevation
public float getElevation()
getFocus
public float getFocus()
getIntensity
public float getIntensity()
prepare
public void prepare(int width,
int height)
Prepare the light for rendering.
width
- the output image widthheight
- the output image height
setAzimuth
public void setAzimuth(float azimuth)
setCentreX
public void setCentreX(float x)
Set the centre of the light in the X direction as a proportion of the image size.
setCentreY
public void setCentreY(float y)
Set the centre of the light in the Y direction as a proportion of the image size.
setColor
public void setColor(int color)
setConeAngle
public void setConeAngle(float coneAngle)
setDistance
public void setDistance(float distance)
setElevation
public void setElevation(float elevation)
setFocus
public void setFocus(float focus)
setIntensity
public void setIntensity(float intensity)
toString
public String toString()