uk.co.silentsoftware.core.converters.image.orderedditherstrategy
Class OmegaOrderedDitherStrategy

java.lang.Object
  extended by uk.co.silentsoftware.core.converters.image.orderedditherstrategy.AbstractOrderedDitherStrategy
      extended by 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
           
 
Constructor Summary
OmegaOrderedDitherStrategy()
           
 
Method Summary
 int[] getCoefficients()
          Retrieves the coefficients to apply
 int getMatrixHeight()
          Retrieves the height of the matrix (1 dimension only)
 int getMatrixWidth()
          Retrieves the width of the matrix (1 dimension only)
 java.lang.String toString()
           
 
Methods inherited from class uk.co.silentsoftware.core.converters.image.orderedditherstrategy.AbstractOrderedDitherStrategy
applyDither
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface uk.co.silentsoftware.core.converters.image.orderedditherstrategy.OrderedDitherStrategy
applyDither
 

Field Detail

COEFFS

private static final int[] COEFFS
Constructor Detail

OmegaOrderedDitherStrategy

public OmegaOrderedDitherStrategy()
Method Detail

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