Class AbstractTransparencyFilter
- java.lang.Object
-
- org.apache.commons.imaging.common.BinaryFileParser
-
- org.apache.commons.imaging.formats.png.transparencyfilters.AbstractTransparencyFilter
-
- Direct Known Subclasses:
TransparencyFilterGrayscale,TransparencyFilterIndexedColor,TransparencyFilterTrueColor
public abstract class AbstractTransparencyFilter extends BinaryFileParser
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]bytes
-
Constructor Summary
Constructors Constructor Description AbstractTransparencyFilter(byte[] bytes)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract intfilter(int rgb, int index)bytegetByte(int offset)Gets the byte at the given offset.intgetLength()Gets the length.-
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 ImagingException, java.io.IOException- Throws:
ImagingExceptionjava.io.IOException
-
getByte
public byte getByte(int offset)
Gets the byte at the given offset.- Parameters:
offset- offset.- Returns:
- a byte.
-
getLength
public int getLength()
Gets the length.- Returns:
- the length
-
-