Class BumpMap
java.lang.Object
org.apache.batik.ext.awt.image.rendered.BumpMap
Default BumpMap implementation.
- Version:
- $Id: BumpMap.java 1733416 2016-03-03 07:07:13Z gadams $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate double
User space to device space scale factorsprivate double
User space to device space scale factorsprivate double
Surface scale used in the normal computationprivate double
Surface scale used in the normal computationprivate double
Surface scale used in the normal computationprivate RenderedImage
Image whose alpha channel is used for the normal calculation -
Constructor Summary
ConstructorsConstructorDescriptionBumpMap
(RenderedImage texture, double surfaceScale, double scaleX, double scaleY) Stores the normals for this bumpMap. -
Method Summary
-
Field Details
-
texture
Image whose alpha channel is used for the normal calculation -
surfaceScale
private double surfaceScaleSurface scale used in the normal computation -
surfaceScaleX
private double surfaceScaleXSurface scale used in the normal computation -
surfaceScaleY
private double surfaceScaleYSurface scale used in the normal computation -
scaleX
private double scaleXUser space to device space scale factors -
scaleY
private double scaleYUser space to device space scale factors
-
-
Constructor Details
-
BumpMap
Stores the normals for this bumpMap. scaleX and scaleY are the user space to device space scales.
-
-
Method Details
-
getSurfaceScale
public double getSurfaceScale()- Returns:
- surface scale used by this bump map.
-
getNormalArray
public double[][][] getNormalArray(int x, int y, int w, int h) - Parameters:
x
- x-axis coordinate for which the normal is computedy
- y-axis coordinate for which the normal is computed
-