uk.co.silentsoftware.core.colourstrategy
Class MonochromeColourStrategy
java.lang.Object
uk.co.silentsoftware.core.colourstrategy.MonochromeColourStrategy
- All Implemented Interfaces:
- ColourChoiceStrategy
public class MonochromeColourStrategy
- extends java.lang.Object
- implements ColourChoiceStrategy
Monochrome strategy - not actually used - just a
placeholder as this isn't actually needed (refactor likely...)
|
Method Summary |
int |
colour(int originalAlphaRgb,
int mostPopularAlphaRgbColour,
int secondMostAlphaPopularRgb)
Method to return the RGB int colour (Spectrum colour) that should be
used for a given pixel based on the Spectrum colours
passed in as mostPopularColour and secondMostPopularColour. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MonochromeColourStrategy
public MonochromeColourStrategy()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
colour
public int colour(int originalAlphaRgb,
int mostPopularAlphaRgbColour,
int secondMostAlphaPopularRgb)
- Description copied from interface:
ColourChoiceStrategy
- Method to return the RGB int colour (Spectrum colour) that should be
used for a given pixel based on the Spectrum colours
passed in as mostPopularColour and secondMostPopularColour.
ExistingColour is either the original pixel colour or
part converted colour (e.g. a pixel that has already undergone
colour processing).
- Specified by:
colour in interface ColourChoiceStrategy
- Returns: