Class ColorInfo
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.vision.computervision.models.ColorInfo
-
public class ColorInfo extends Object
An object providing additional metadata describing color attributes.
-
-
Constructor Summary
Constructors Constructor Description ColorInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.ColorInfo
withAccentColor(String accentColor)
Set the accentColor value.ColorInfo
withDominantColorBackground(String dominantColorBackground)
Set the dominantColorBackground value.ColorInfo
withDominantColorForeground(String dominantColorForeground)
Set the dominantColorForeground value.ColorInfo
withDominantColors(List<String> dominantColors)
Set the dominantColors value.ColorInfo
withIsBWImg(boolean isBWImg)
Set the isBWImg value.
-
-
-
Method Detail
-
dominantColorForeground
public String dominantColorForeground()
Get the dominantColorForeground value.- Returns:
- the dominantColorForeground value
-
withDominantColorForeground
public ColorInfo withDominantColorForeground(String dominantColorForeground)
Set the dominantColorForeground value.- Parameters:
dominantColorForeground
- the dominantColorForeground value to set- Returns:
- the ColorInfo object itself.
-
dominantColorBackground
public String dominantColorBackground()
Get the dominantColorBackground value.- Returns:
- the dominantColorBackground value
-
withDominantColorBackground
public ColorInfo withDominantColorBackground(String dominantColorBackground)
Set the dominantColorBackground value.- Parameters:
dominantColorBackground
- the dominantColorBackground value to set- Returns:
- the ColorInfo object itself.
-
dominantColors
public List<String> dominantColors()
Get the dominantColors value.- Returns:
- the dominantColors value
-
withDominantColors
public ColorInfo withDominantColors(List<String> dominantColors)
Set the dominantColors value.- Parameters:
dominantColors
- the dominantColors value to set- Returns:
- the ColorInfo object itself.
-
accentColor
public String accentColor()
Get the accentColor value.- Returns:
- the accentColor value
-
withAccentColor
public ColorInfo withAccentColor(String accentColor)
Set the accentColor value.- Parameters:
accentColor
- the accentColor value to set- Returns:
- the ColorInfo object itself.
-
isBWImg
public boolean isBWImg()
Get the isBWImg value.- Returns:
- the isBWImg value
-
withIsBWImg
public ColorInfo withIsBWImg(boolean isBWImg)
Set the isBWImg value.- Parameters:
isBWImg
- the isBWImg value to set- Returns:
- the ColorInfo object itself.
-
-