org.foray.common
Class ColorUtil

java.lang.Object
  extended by org.foray.common.ColorUtil

public final class ColorUtil
extends Object

Utility class for colors.


Method Summary
static Color convertColorSpace(Color color, ColorSpace colorSpace)
          Converts a given color to a color in a given ColorSpace, returning the result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convertColorSpace

public static Color convertColorSpace(Color color,
                                      ColorSpace colorSpace)
Converts a given color to a color in a given ColorSpace, returning the result.

Parameters:
color - The color to be converted.
colorSpace - The color space to which the color should be converted.
Returns:
A color in colorSpace that matches (as much as possible) the color in color.


Copyright © 2017. All rights reserved.