Class TransparencyFilter
- java.lang.Object
-
- org.apache.commons.imaging.common.BinaryFileParser
-
- org.apache.commons.imaging.formats.png.transparencyfilters.TransparencyFilter
-
- Direct Known Subclasses:
TransparencyFilterGrayscale,TransparencyFilterIndexedColor,TransparencyFilterTrueColor
public abstract class TransparencyFilter extends BinaryFileParser
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]bytes
-
Constructor Summary
Constructors Constructor Description TransparencyFilter(byte[] bytes)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract intfilter(int rgb, int index)bytegetByte(int offset)intgetLength()-
Methods inherited from class org.apache.commons.imaging.common.BinaryFileParser
debugNumber, debugNumber, getByteOrder, setByteOrder
-
-
-
-
Method Detail
-
filter
public abstract int filter(int rgb, int index) throws ImageReadException, java.io.IOException- Throws:
ImageReadExceptionjava.io.IOException
-
getByte
public byte getByte(int offset)
- Returns:
- a byte
-
getLength
public int getLength()
- Returns:
- the length
-
-