public class ImageUtilsImpl extends Object implements ImageUtils
| Constructor and Description |
|---|
ImageUtilsImpl() |
| 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. |
public Color getColor(String hexString, boolean transparent)
ImageUtilsColor
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.getColor in interface ImageUtilshexString - The hex representation to converttransparent - whether or not to add transparencyCopyright © 2002-2022 Atlassian. All Rights Reserved.