com.atlassian.jira.image.util
Interface ImageUtils

All Known Implementing Classes:
ImageUtilsImpl

public interface ImageUtils

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

Since:
v4.0

Method Summary
 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.
 

Method Detail

getColor

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


Copyright © 2002-2012 Atlassian. All Rights Reserved.