ColorInfo Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. vision. computervision. models. ColorInfo
- com.
public class ColorInfo
An object providing additional metadata describing color attributes.
Constructor Summary
Constructor | Description | |
---|---|---|
ColorInfo() |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
accentColor()
Get the accent |
String |
dominantColorBackground()
Get the dominant |
String |
dominantColorForeground()
Get the dominant |
List<String> |
dominantColors()
Get the dominant |
boolean |
isBWImg()
Get the is |
Color |
withAccentColor(String accentColor)
Set the accent |
Color |
withDominantColorBackground(String dominantColorBackground)
Set the dominant |
Color |
withDominantColorForeground(String dominantColorForeground)
Set the dominant |
Color |
withDominantColors(List<String> dominantColors)
Set the dominant |
Color |
withIsBWImg(boolean isBWImg)
Set the is |
Methods inherited from java.lang.Object
Constructor Details
ColorInfo
public ColorInfo()
Method Details
accentColor
public String accentColor()
Get the accentColor value.
Returns:
dominantColorBackground
public String dominantColorBackground()
Get the dominantColorBackground value.
Returns:
dominantColorForeground
public String dominantColorForeground()
Get the dominantColorForeground value.
Returns:
dominantColors
public List
Get the dominantColors value.
Returns:
isBWImg
public boolean isBWImg()
Get the isBWImg value.
Returns:
withAccentColor
public ColorInfo withAccentColor(String accentColor)
Set the accentColor value.
Parameters:
Returns:
withDominantColorBackground
public ColorInfo withDominantColorBackground(String dominantColorBackground)
Set the dominantColorBackground value.
Parameters:
Returns:
withDominantColorForeground
public ColorInfo withDominantColorForeground(String dominantColorForeground)
Set the dominantColorForeground value.
Parameters:
Returns:
withDominantColors
public ColorInfo withDominantColors(List
Set the dominantColors value.
Parameters:
Returns:
withIsBWImg
public ColorInfo withIsBWImg(boolean isBWImg)
Set the isBWImg value.
Parameters:
Returns: