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.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
accentColor()
Get the accentColor value. |
String |
dominantColorBackground()
Get the dominantColorBackground value. |
String |
dominantColorForeground()
Get the dominantColorForeground value. |
List<String> |
dominantColors()
Get the dominantColors value. |
boolean |
isBWImg()
Get the isBWImg value. |
Color |
withAccentColor(String accentColor)
Set the accentColor value. |
Color |
withDominantColorBackground(String dominantColorBackground)
Set the dominantColorBackground value. |
Color |
withDominantColorForeground(String dominantColorForeground)
Set the dominantColorForeground value. |
Color |
withDominantColors(List<String> dominantColors)
Set the dominantColors value. |
Color |
withIsBWImg(boolean isBWImg)
Set the isBWImg value. |
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:
Applies to
Azure SDK for Java