Package org.apache.xmlgraphics.java2d.color

Examples of org.apache.xmlgraphics.java2d.color.CIELabColorSpace.toCIEXYZNative()


            Color colLab = d50.toColor(83.25f, 16.45f, 96.89f, 1.0f);
            g2d.setColor(colLab);
            g2d.fillRect(110, 30, 40, 40);

            //Try named color (Separation, not implemented, yet)
            float[] c1xyz = d50.toCIEXYZNative(83.25f, 16.45f, 96.89f);
            NamedColorSpace postgelb = new NamedColorSpace("Postgelb", c1xyz);
            Color colNamed = new Color(postgelb, new float[] {1.0f}, 1.0f);
            g2d.setColor(colNamed);
            g2d.fillRect(160, 30, 40, 40);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.