public class ImageInfo extends Object
Constructor and Description |
---|
ImageInfo(BufferedImage image) |
Modifier and Type | Method and Description |
---|---|
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) |
public ImageInfo(BufferedImage image)
public HSBColor getTopLeftPixel()
public HSBColor getTopRightPixel()
public HSBColor getBottomLeftPixel()
public HSBColor getBottomRightPixel()
public List<ColorCount> getColorRatio()
public static List<ColorCount> getSimilarColorRatio(HSBColor... colors)
public HSBColor getFirstNonMonochromeColor(float minPercentage)
public Integer getMostCommonHue()
public HSBColor getMostInterestingColorWithHue(int hue)
public HSBColor getAverageColorWithHue(int hue)
public HSBColor getAverageColour()
public float getPercentageTransparent()
public boolean isTransparentBackground()
public HSBColor getBackgroundColor()
public boolean isMostlyWhite()
public static boolean isWhiteOrCloseEnough(HSBColor color)
public boolean isTooBrightForWhiteBackground()
public HSBColor getPredominantColor()
public static boolean isMonochrome(HSBColor color)
Copyright © 2002-2022 Atlassian. All Rights Reserved.