Package javax.media.jai

Examples of javax.media.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

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

TOP

Related Classes of javax.media.jai.ColorSpaceJAI

Copyright © 2018 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.