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 Link icon

    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 Link icon

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

    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 Link icon

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

    • lutData Link icon

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

      public float slope
      The slope of the linear function
    • intercept Link icon

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

    • LinearTransfer Link icon

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

    • getLookupTable Link icon

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