Class LinearTransfer

java.lang.Object
io.sf.carte.echosvg.ext.awt.image.LinearTransfer
All Implemented Interfaces:
TransferFunction

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

    Fields
    Modifier and Type
    Field
    Description
    float
    The intercept of the linear function
    byte[]
    This byte array stores the lookuptable data
    float
    The slope of the linear function
  • Constructor Summary

    Constructors
    Constructor
    Description
    LinearTransfer(float slope, float intercept)
    Two floats as the input for the function
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    This method will return the lut data in order to construct a LookUpTable object

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • lutData

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

      public float slope
      The slope of the linear function
    • intercept

      public float intercept
      The intercept of the linear function
  • Constructor Details

    • LinearTransfer

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

    • getLookupTable

      public byte[] getLookupTable()
      This method will return the lut data in order to construct a LookUpTable object
      Specified by:
      getLookupTable in interface TransferFunction