com.atlassian.jira.lookandfeel
Class ImageInfo

java.lang.Object
  extended by com.atlassian.jira.lookandfeel.ImageInfo

public class ImageInfo
extends Object


Constructor Summary
ImageInfo(BufferedImage image)
           
 
Method Summary
static HSBColor getAverageColor(HSBColor... colors)
           
 HSBColor getAverageColorWithHue(int hue)
           
 HSBColor getAverageColour()
           
 HSBColor getBackgroundColor()
           
 HSBColor getBottomLeftPixel()
           
 HSBColor getBottomRightPixel()
           
 List<ColorCount> getColorRatio()
           
 Map<HSBColor,Integer> getColorRatioAsMap()
           
 HSBColor getFirstNonMonochromeColor(float minPercentage)
           
 Integer getMostCommonHue()
           
 HSBColor getMostInterestingColorWithHue(int hue)
           
 float getPercentageTransparent()
           
 HSBColor getPredominantColor()
           
static List<ColorCount> getSimilarColorRatio(HSBColor... colors)
           
 HSBColor getTopLeftPixel()
           
 HSBColor getTopRightPixel()
           
static boolean isMonochrome(HSBColor color)
           
 boolean isMostlyWhite()
           
static boolean isSimilar(HSBColor c1, HSBColor c2)
           
 boolean isTooBrightForWhiteBackground()
           
 boolean isTransparentBackground()
           
static boolean isWhiteOrCloseEnough(HSBColor color)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageInfo

public ImageInfo(BufferedImage image)
Method Detail

getTopLeftPixel

public HSBColor getTopLeftPixel()

getTopRightPixel

public HSBColor getTopRightPixel()

getBottomLeftPixel

public HSBColor getBottomLeftPixel()

getBottomRightPixel

public HSBColor getBottomRightPixel()

getColorRatio

public List<ColorCount> getColorRatio()

getColorRatioAsMap

public Map<HSBColor,Integer> getColorRatioAsMap()

getSimilarColorRatio

public static List<ColorCount> getSimilarColorRatio(HSBColor... colors)

getFirstNonMonochromeColor

public HSBColor getFirstNonMonochromeColor(float minPercentage)

getMostCommonHue

public Integer getMostCommonHue()

getMostInterestingColorWithHue

public HSBColor getMostInterestingColorWithHue(int hue)

getAverageColorWithHue

public HSBColor getAverageColorWithHue(int hue)

getAverageColour

public HSBColor getAverageColour()

getAverageColor

public static HSBColor getAverageColor(HSBColor... colors)

getPercentageTransparent

public float getPercentageTransparent()

isTransparentBackground

public boolean isTransparentBackground()

getBackgroundColor

public HSBColor getBackgroundColor()

isMostlyWhite

public boolean isMostlyWhite()

isWhiteOrCloseEnough

public static boolean isWhiteOrCloseEnough(HSBColor color)

isTooBrightForWhiteBackground

public boolean isTooBrightForWhiteBackground()

getPredominantColor

public HSBColor getPredominantColor()

isMonochrome

public static boolean isMonochrome(HSBColor color)

isSimilar

public static boolean isSimilar(HSBColor c1,
                                HSBColor c2)


Copyright © 2002-2014 Atlassian. All Rights Reserved.