org.apache.batik.ext.awt.image.rendered
Class BumpMap

java.lang.Object
  extended byorg.apache.batik.ext.awt.image.rendered.BumpMap

public final class BumpMap
extends java.lang.Object

Default BumpMap implementation.

Version:
$Id: BumpMap.java,v 1.5 2003/08/09 16:58:42 deweese Exp $
Author:
Constructor Summary
BumpMap(java.awt.image.RenderedImage texture, double surfaceScale, double scaleX, double scaleY)
          Stores the normals for this bumpMap.
 
Method Summary
 double[][][] getNormalArray(int x, int y, int w, int h)
           
 double getSurfaceScale()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BumpMap

public BumpMap(java.awt.image.RenderedImage texture,
               double surfaceScale,
               double scaleX,
               double scaleY)
Stores the normals for this bumpMap. scaleX and scaleY are the user space to device space scales.

Method Detail

getSurfaceScale

public final double getSurfaceScale()
Returns:
surface scale used by this bump map.

getNormalArray

public final double[][][] getNormalArray(int x,
                                         int y,
                                         int w,
                                         int h)
Parameters:
x - x-axis coordinate for which the normal is computed
y - y-axis coordinate for which the normal is computed


<oXygen/> XML Editor uses Batik from the Apache Foundation to provide support for previewing SVG documents. See the SVG Editor section for more info.