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

java.lang.Object
  extended by uk.co.silentsoftware.core.converters.image.orderedditherstrategy.AbstractOrderedDitherStrategy
      extended by uk.co.silentsoftware.core.converters.image.orderedditherstrategy.BayerTwoByTwoOrderedDitherStrategy
All Implemented Interfaces:
OrderedDitherStrategy

public class BayerTwoByTwoOrderedDitherStrategy
extends AbstractOrderedDitherStrategy
implements OrderedDitherStrategy

Implementation of the classical Bayer 2x2 ordered dither algorithm


Field Summary
private static int[] COEFFS
           
 
Constructor Summary
BayerTwoByTwoOrderedDitherStrategy()
           
 
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

BayerTwoByTwoOrderedDitherStrategy

public BayerTwoByTwoOrderedDitherStrategy()
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