getBestImageType(hexColor)¶
Definition¶
String getBestImageType(String hexColor)
Description¶
This method helps to decide which type of image to use based on the background color on the method parameter. For example, if the background color is of a darker shade, it returns WHITE. Possible return values: BLACK, WHITE, COLOR, null (for invalid input).
Parameter Definition¶
Name | Type | Description |
---|---|---|
hexColor | String | color in hex format (i.e #FF00FF) |