public interface ImageUtils
Modifier and Type | Method and Description |
---|---|
Color |
getColor(String hexString,
boolean transparent)
Turn a hex string into a
Color
Input string can ontain a leading hash (#) and can be a 3 char or 6 char hex string. |
Color getColor(String hexString, boolean transparent)
Color
Input string can ontain a leading hash (#) and can be a 3 char or 6 char hex string. See any web tutorial for
what colour the string represents.
If hex colors are wrong, null is returned.hexString
- The hex representation to converttransparent
- whether or not to add transparencyCopyright © 2002-2019 Atlassian. All Rights Reserved.