Package org.apache.commons.imaging.formats.png.transparencyfilters

# Class TransparencyFilterGrayscale

java.lang.Object
org.apache.commons.imaging.common.BinaryFileParser
org.apache.commons.imaging.formats.png.transparencyfilters.AbstractTransparencyFilter
org.apache.commons.imaging.formats.png.transparencyfilters.TransparencyFilterGrayscale

public final class TransparencyFilterGrayscale extends AbstractTransparencyFilter

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `TransparencyFilterGrayscale(byte[] bytes)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `filter(int rgb, int index)`

  ### Methods inherited from class org.apache.commons.imaging.formats.png.transparencyfilters.AbstractTransparencyFilter

  `getByte, getLength`

  ### Methods inherited from class org.apache.commons.imaging.common.BinaryFileParser

  `debugNumber, debugNumber, getByteOrder, setByteOrder`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### TransparencyFilterGrayscale

    public TransparencyFilterGrayscale(byte[] bytes) throws IOException
    Throws:
      `IOException`

- ## Method Details

  - ### filter

    public int filter(int rgb, int index) throws ImagingException, IOException
    Specified by:
      `filter` in class `AbstractTransparencyFilter`
    Throws:
      `ImagingException`
      `IOException`