org.foray.common
Class ColorUtil
java.lang.Object
org.foray.common.ColorUtil
public final class ColorUtil
- extends Object
Utility class for colors.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.