uk.co.silentsoftware.core.colourstrategy
Interface ColourChoiceStrategy

All Known Implementing Classes:
FullPaletteStrategy, GigaScreenStrategy, MonochromeColourStrategy

public interface ColourChoiceStrategy

Pixel colouring strategy used during the conversion process


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.
 

Method Detail

colour

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. ExistingColour is either the original pixel colour or part converted colour (e.g. a pixel that has already undergone colour processing).

Parameters:
originalAlphaRgb -
mostPopularAlphaRgbColour -
secondMostAlphaPopularRgb -
Returns: