Compartilhar via


ColorInfo Classe

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

public class ColorInfo

Um objeto que fornece metadados adicionais que descrevem atributos de cor.

Resumo do método

Modificador e tipo Método e descrição
String accentColor()

Obtenha o valor accentColor.

String dominantColorBackground()

Obtenha o valor dominanteColorBackground.

String dominantColorForeground()

Obtenha o valor dominantColorForeground.

List<String> dominantColors()

Obtenha o valor dominantColors.

boolean isBWImg()

Obtenha o valor isBWImg.

ColorInfo withAccentColor(String accentColor)

Defina o valor accentColor.

ColorInfo withDominantColorBackground(String dominantColorBackground)

Defina o valor dominantColorBackground.

ColorInfo withDominantColorForeground(String dominantColorForeground)

Defina o valor dominantColorForeground.

ColorInfo withDominantColors(List<String> dominantColors)

Defina o valor dominantColors.

ColorInfo withIsBWImg(boolean isBWImg)

Defina o valor isBWImg.

Detalhes do método

accentColor

public String accentColor()

Obtenha o valor accentColor.

Returns:

o valor accentColor

dominantColorBackground

public String dominantColorBackground()

Obtenha o valor dominanteColorBackground.

Returns:

o valor de dominantColorBackground

dominantColorForeground

public String dominantColorForeground()

Obtenha o valor dominantColorForeground.

Returns:

o valor de dominantColorForeground

dominantColors

public List dominantColors()

Obtenha o valor dominantColors.

Returns:

o valor de dominantColors

isBWImg

public boolean isBWImg()

Obtenha o valor isBWImg.

Returns:

o valor isBWImg

withAccentColor

public ColorInfo withAccentColor(String accentColor)

Defina o valor accentColor.

Parameters:

accentColor - o valor accentColor a ser definido

Returns:

o próprio objeto ColorInfo.

withDominantColorBackground

public ColorInfo withDominantColorBackground(String dominantColorBackground)

Defina o valor dominantColorBackground.

Parameters:

dominantColorBackground - o valor dominantColorBackground a ser definido

Returns:

o próprio objeto ColorInfo.

withDominantColorForeground

public ColorInfo withDominantColorForeground(String dominantColorForeground)

Defina o valor dominantColorForeground.

Parameters:

dominantColorForeground - o valor dominantColorForeground a ser definido

Returns:

o próprio objeto ColorInfo.

withDominantColors

public ColorInfo withDominantColors(List dominantColors)

Defina o valor dominantColors.

Parameters:

dominantColors - o valor de dominantColors a ser definido

Returns:

o próprio objeto ColorInfo.

withIsBWImg

public ColorInfo withIsBWImg(boolean isBWImg)

Defina o valor isBWImg.

Parameters:

isBWImg - o valor isBWImg a ser definido

Returns:

o próprio objeto ColorInfo.

Aplica-se a