ColorInfo Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.vision.computervision.models.ColorInfo

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.

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 Details

accentColor

public String accentColor()

Get the accentColor value.

Returns:

the accentColor value

dominantColorBackground

public String dominantColorBackground()

Get the dominantColorBackground value.

Returns:

the dominantColorBackground value

dominantColorForeground

public String dominantColorForeground()

Get the dominantColorForeground value.

Returns:

the dominantColorForeground value

dominantColors

public List dominantColors()

Get the dominantColors value.

Returns:

the dominantColors value

isBWImg

public boolean isBWImg()

Get the isBWImg value.

Returns:

the isBWImg value

withAccentColor

public ColorInfo withAccentColor(String accentColor)

Set the accentColor value.

Parameters:

accentColor - the accentColor value to set

Returns:

the ColorInfo object itself.

withDominantColorBackground

public ColorInfo withDominantColorBackground(String dominantColorBackground)

Set the dominantColorBackground value.

Parameters:

dominantColorBackground - the dominantColorBackground value to set

Returns:

the ColorInfo object itself.

withDominantColorForeground

public ColorInfo withDominantColorForeground(String dominantColorForeground)

Set the dominantColorForeground value.

Parameters:

dominantColorForeground - the dominantColorForeground value to set

Returns:

the ColorInfo object itself.

withDominantColors

public ColorInfo withDominantColors(List dominantColors)

Set the dominantColors value.

Parameters:

dominantColors - the dominantColors value to set

Returns:

the ColorInfo object itself.

withIsBWImg

public ColorInfo withIsBWImg(boolean isBWImg)

Set the isBWImg value.

Parameters:

isBWImg - the isBWImg value to set

Returns:

the ColorInfo object itself.

Applies to