Class BumpMap
java.lang.Object
org.apache.batik.ext.awt.image.rendered.BumpMap
Default BumpMap implementation.
-
Constructor Summary
ConstructorsConstructorDescriptionBumpMap
(RenderedImage texture, double surfaceScale, double scaleX, double scaleY) Stores the normals for this bumpMap. -
Method Summary
-
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
-