Class GammaTransfer

java.lang.Object
org.apache.batik.ext.awt.image.GammaTransfer
All Implemented Interfaces:
TransferFunction

public class GammaTransfer extends Object implements TransferFunction
GammaTransfer.java This class defines the Gamma 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 amplitude of the Gamma function
    float
    The exponent of the Gamma function
    byte[]
    This byte array stores the lookuptable data
    float
    The offset of the Gamma function
  • Constructor Summary

    Constructors
    Constructor
    Description
    GammaTransfer(float amplitude, float exponent, float offset)
    Three floats as the input for the Gamma 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
    • amplitude

      public float amplitude
      The amplitude of the Gamma function
    • exponent

      public float exponent
      The exponent of the Gamma function
    • offset

      public float offset
      The offset of the Gamma function
  • Constructor Details

    • GammaTransfer

      public GammaTransfer(float amplitude, float exponent, float offset)
      Three floats as the input for the Gamma 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