Stephan Köninger created IMAGING-157:
----------------------------------------

             Summary: Add method to color classes to convert colors to other 
color spaces
                 Key: IMAGING-157
                 URL: https://issues.apache.org/jira/browse/IMAGING-157
             Project: Commons Imaging
          Issue Type: Improvement
            Reporter: Stephan Köninger


Instead of having a static util class it would be nice to have a method 
available to all Color types which allows one to convert a color to another 
color space. See following example for clearance:

{code:java}
ColorCmyk cymk = new ColorCmyk(100, 0, 100, 0);
ColorHsl colorHsl = cymk.convertTo(Color.Hsl); 
// or
ColorHsl colorHsl = cymk.convertTo(ColorHsl.class); 
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to