Examples of RasterFormatTag


Examples of javax.media.jai.RasterFormatTag

/*     */   public AWTImageOpImage(Map config, ImageLayout layout, Image image)
/*     */   {
/* 151 */     super(layout = layoutHelper(layout, image), config, layout.getSampleModel(null), layout.getMinX(null), layout.getMinY(null), layout.getWidth(null), layout.getHeight(null));
/*     */
/* 157 */     if ((getTileWidth() != getWidth()) || (getTileHeight() != getHeight())) {
/* 158 */       this.rasterFormatTag = new RasterFormatTag(getSampleModel(), 0);
/*     */     }
/*     */
/* 164 */     this.pixels = new int[this.width * this.height];
/* 165 */     PixelGrabber grabber = new PixelGrabber(image, 0, 0, this.width, this.height, this.pixels, 0, this.width);
/*     */     try
View Full Code Here

Examples of javax.media.jai.RasterFormatTag

        final SampleModel[] sourceSM = new SampleModel[] { sources.getSampleModel() };
        final int formatTagID = RasterAccessor.findCompatibleTag(sourceSM, destinationRaster.getSampleModel());

        // Create dest accessor.
        final RasterAccessor rasterAccessor = new RasterAccessor(destinationRaster, destRect,
                new RasterFormatTag(destinationRaster.getSampleModel(), formatTagID), null);

        final int dataType = rasterAccessor.getDataType();
        // Branch to data type-specific method.
        switch (dataType) {
        case DataBuffer.TYPE_BYTE:
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.