Package org.apache.batik.ext.awt.image
Class LinearTransfer
java.lang.Object
org.apache.batik.ext.awt.image.LinearTransfer
- All Implemented Interfaces:
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.
- Version:
- $Id: LinearTransfer.java 1733416 2016-03-03 07:07:13Z gadams $
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLinearTransfer
(float slope, float intercept) Two floats as the input for the function -
Method Summary
Modifier and TypeMethodDescriptionprivate void
byte[]
This method will return the lut data in order to construct a LookUpTable object
-
Field Details
-
lutData
public byte[] lutDataThis byte array stores the lookuptable data -
slope
public float slopeThe slope of the linear function -
intercept
public float interceptThe intercept of the linear function
-
-
Constructor Details
-
LinearTransfer
public LinearTransfer(float slope, float intercept) Two floats as the input for the function
-
-
Method Details
-
buildLutData
private void buildLutData() -
getLookupTable
public byte[] getLookupTable()This method will return the lut data in order to construct a LookUpTable object- Specified by:
getLookupTable
in interfaceTransferFunction
-