Package com.lightcrafts.mediax.jai

Examples of com.lightcrafts.mediax.jai.ColorSpaceJAI


               ImageParameters srcParam,
               WritableRaster dest,
               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


    private WritableRaster computeRectColorSpaceJAIFromRGB(Raster src,
                 ImageParameters srcParam,
                 WritableRaster dest,
                 ImageParameters dstParam){
  src = convertRasterToUnsigned(src);
  ColorSpaceJAI colorSpaceJAI
      = (ColorSpaceJAI) dstParam.getColorModel().getColorSpace();
        dest = colorSpaceJAI.fromRGB(src, srcParam.getComponentSize(), dest,
             dstParam.getComponentSize());

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

               ImageParameters srcParam,
               WritableRaster dest,
               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

    private WritableRaster computeRectColorSpaceJAIFromRGB(Raster src,
                 ImageParameters srcParam,
                 WritableRaster dest,
                 ImageParameters dstParam){
  src = convertRasterToUnsigned(src);
  ColorSpaceJAI colorSpaceJAI
      = (ColorSpaceJAI) dstParam.getColorModel().getColorSpace();
        dest = colorSpaceJAI.fromRGB(src, srcParam.getComponentSize(), dest,
             dstParam.getComponentSize());
  dest = convertRasterToSigned(dest);
  return dest;
    }
View Full Code Here

TOP

Related Classes of com.lightcrafts.mediax.jai.ColorSpaceJAI

Copyright © 2015 www.massapicom. 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.