public interface

ImageUtils

com.atlassian.jira.image.util.ImageUtils
Known Indirect Subclasses

Class Overview

Util class for calculating common things for image manipulation/creation.

Summary

Public Methods
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 Methods

public 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. See any web tutorial for what colour the string represents. If hex colors are wrong, null is returned.

Parameters
hexString The hex representation to convert
transparent whether or not to add transparency
Returns
  • The equiv Color or null if there was a problem parsing the string