org.apache.batik.ext.awt.image

Class LinearTransfer

public class LinearTransfer extends Object implements TransferFunction

LinearTransfer.java This class defines the Linear type transfer function for the feComponentTransfer filter, as defined in chapter 15, section 11 of the SVG specification.
Field Summary
floatintercept
The intercept of the linear function
byte[]lutData
This byte array stores the lookuptable data
floatslope
The slope of the linear function
Constructor Summary
LinearTransfer(float slope, float intercept)
Two floats as the input for the function
Method Summary
byte[]getLookupTable()
This method will return the lut data in order to construct a LookUpTable object

Field Detail

intercept

public float intercept
The intercept of the linear function

lutData

public byte[] lutData
This byte array stores the lookuptable data

slope

public float slope
The slope of the linear function

Constructor Detail

LinearTransfer

public LinearTransfer(float slope, float intercept)
Two floats as the input for the function

Method Detail

getLookupTable

public byte[] getLookupTable()
This method will return the lut data in order to construct a LookUpTable object
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.