Examples of toRGB()


Examples of ca.eandb.jmist.framework.color.CIEXYZ.toRGB()

    for (int y = 0; y < h; y++) {
      for (int x = 0; x < w; x++) {
        CIEXYZ xyz = hdrImage.get(x, y);
        if (xyz != null) {
          xyz = toneMapper.apply(xyz);
          int rgb = xyz.toRGB().toR8G8B8();
          ldrImage.setRGB(x, y, rgb);
        }
      }
    }
    super.repaint();
View Full Code Here

Examples of ca.eandb.jmist.framework.color.CIEXYZ.toRGB()

      ToneMapper toneMapper = toneMapperFactory.createToneMapper(image);

      for (int y = 0; y < height; y++) {
        for (int x = 0; x < width; x++) {
          CIEXYZ xyz = toneMapper.apply(image.get(x, y));
          int rgb = xyz.toRGB().toR8G8B8();
          bi.setRGB(x, y, rgb);
        }
      }

      ImageIO.write(bi, formatName, os);
View Full Code Here

Examples of com.lightcrafts.mediax.jai.ColorSpaceJAI.toRGB()

               ImageParameters dstParam) {
  src = convertRasterToUnsigned(src);

  ColorSpaceJAI colorSpaceJAI
      = (ColorSpaceJAI) srcParam.getColorModel().getColorSpace();
  dest = colorSpaceJAI.toRGB(src, srcParam.getComponentSize(), dest,
                 dstParam.getComponentSize());

        dest = convertRasterToSigned(dest);
  return dest;
    }
View Full Code Here

Examples of com.lightcrafts.mediax.jai.ColorSpaceJAI.toRGB()

               ImageParameters dstParam) {
  src = convertRasterToUnsigned(src);

  ColorSpaceJAI colorSpaceJAI
      = (ColorSpaceJAI) srcParam.getColorModel().getColorSpace();
  dest = colorSpaceJAI.toRGB(src, srcParam.getComponentSize(), dest,
                 dstParam.getComponentSize());

        dest = convertRasterToSigned(dest);
  return dest;
    }
View Full Code Here

Examples of com.lightcrafts.mediax.jai.IHSColorSpace.toRGB()

        IHSColorSpace ihs = IHSColorSpace.getInstance();

        float components[] = new float[3];
        components = ihs.fromRGB(color.getColorComponents(components));
        components[0] *= amount;
        components = ihs.toRGB(components);
        return new Color(components[0], components[1], components[2]);
    }

    public static class CustomColorScheme extends BaseColorScheme {
        private final Color mainUltraLightColor;
View Full Code Here

Examples of java.awt.color.ColorSpace.toRGB()

                for (int k = 0; k < 4; k++)
                {
                    srcColorValues[k] /= 255f;
                }
                // convert CMYK to RGB
                float[] rgbValues = cs.toRGB(srcColorValues);
                // convert values from 0..1 to 0..255
                for (int k = 0; k < 3; k++)
                {
                    rgb[rgbIndex+k] = (byte)(rgbValues[k] * 255);
                }
View Full Code Here

Examples of java.awt.color.ColorSpace.toRGB()

     *
     */
    public float[] toRGB(float[] colorvalue)
    {
        ColorSpace colorspaceXYZ = ColorSpace.getInstance(CS_CIEXYZ);
        return colorspaceXYZ.toRGB(toCIEXYZ(colorvalue));
    }

    /**
     * {@inheritDoc}
     *
 
View Full Code Here

Examples of java.awt.color.ColorSpace.toRGB()

                for (int k = 0; k < 4; k++)
                {
                    srcColorValues[k] /= 255f;
                }
                // convert CMYK to RGB
                float[] rgbValues = cs.toRGB(srcColorValues);
                // convert values from 0..1 to 0..255
                for (int k = 0; k < 3; k++)
                {
                    rgb[rgbIndex+k] = (byte)(rgbValues[k] * 255);
                }
View Full Code Here

Examples of java.awt.color.ColorSpace.toRGB()

                for (int k = 0; k < 4; k++)
                {
                    srcColorValues[k] /= 255f;
                }
                // convert CMYK to RGB
                float[] rgbValues = cs.toRGB(srcColorValues);
                // convert values from 0..1 to 0..255
                for (int k = 0; k < 3; k++)
                {
                    rgb[rgbIndex+k] = (byte)(rgbValues[k] * 255);
                }
View Full Code Here

Examples of java.awt.color.ColorSpace.toRGB()

                for (int k = 0; k < 4; k++)
                {
                    srcColorValues[k] /= 255f;
                }
                // convert CMYK to RGB
                float[] rgbValues = cs.toRGB(srcColorValues);
                // convert values from 0..1 to 0..255
                for (int k = 0; k < 3; k++)
                {
                    rgb[rgbIndex+k] = (byte)(rgbValues[k] * 255);
                }
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.