uk.co.silentsoftware.core.converters.image.orderedditherstrategy
Class OmegaOrderedDitherStrategy
java.lang.Object
uk.co.silentsoftware.core.converters.image.orderedditherstrategy.AbstractOrderedDitherStrategy
uk.co.silentsoftware.core.converters.image.orderedditherstrategy.OmegaOrderedDitherStrategy
- All Implemented Interfaces:
- OrderedDitherStrategy
public class OmegaOrderedDitherStrategy
- extends AbstractOrderedDitherStrategy
- implements OrderedDitherStrategy
Ordered dithering algorithm based on an even distribution devised by
Omega from World of Spectrum forums, revised by Benjamin Brown
|
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
OmegaOrderedDitherStrategy
public OmegaOrderedDitherStrategy()
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