com.atlassian.jira.lookandfeel
Class ImageInfo
java.lang.Object
com.atlassian.jira.lookandfeel.ImageInfo
public class ImageInfo
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageInfo
public ImageInfo(BufferedImage image)
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.