uk.co.silentsoftware.core.converters.image.orderedditherstrategy
Class LightnessOrderedDitherStrategy
java.lang.Object
uk.co.silentsoftware.core.converters.image.orderedditherstrategy.AbstractOrderedDitherStrategy
uk.co.silentsoftware.core.converters.image.orderedditherstrategy.LightnessOrderedDitherStrategy
- All Implemented Interfaces:
- OrderedDitherStrategy
public class LightnessOrderedDitherStrategy
- extends AbstractOrderedDitherStrategy
- implements OrderedDitherStrategy
Implementation of the "Lightness" ordered dither algorithm found
on news groups (author unknown)
|
Field Summary |
private static int[] |
COEFFS
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
COEFFS
private static final int[] COEFFS
LightnessOrderedDitherStrategy
public LightnessOrderedDitherStrategy()
getCoefficients
public int[] getCoefficients()
- Description copied from class:
AbstractOrderedDitherStrategy
- Retrieves the coefficients to apply
- Specified by:
getCoefficients in class AbstractOrderedDitherStrategy
- Returns:
getMatrixWidth
public int getMatrixWidth()
- Description copied from class:
AbstractOrderedDitherStrategy
- Retrieves the width of the matrix (1 dimension only)
- Specified by:
getMatrixWidth in interface OrderedDitherStrategy- Specified by:
getMatrixWidth in class AbstractOrderedDitherStrategy
getMatrixHeight
public int getMatrixHeight()
- Description copied from class:
AbstractOrderedDitherStrategy
- Retrieves the height of the matrix (1 dimension only)
- Specified by:
getMatrixHeight in interface OrderedDitherStrategy- Specified by:
getMatrixHeight in class AbstractOrderedDitherStrategy
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object