Examples of BandCombineOp


Examples of java.awt.image.BandCombineOp

        final int srcMinX = srcRI.getMinX();
        final int srcMinY = srcRI.getMinY();

        RenderingHints hints = rc.getRenderingHints();
        BandCombineOp op = new BandCombineOp(matrix, null);

        //
        // Wrap source in buffered image
        //
        ColorModel cm = srcRI.getColorModel();
        Raster srcRR = srcRI.getData();
        Point origin = new Point(0, 0);
        WritableRaster srcWR = Raster.createWritableRaster(srcRR.getSampleModel(),
                                                           srcRR.getDataBuffer(),
                                                           origin);
        /*
        BufferedImage srcBI = new BufferedImage(cm,
                                                srcWR,
                                                cm.isAlphaPremultiplied(),
                                                null);*/

        WritableRaster dstWR = op.filter(srcWR, srcWR);

        BufferedImage dstBI = new BufferedImage(cm,
                                                dstWR,
                                                cm.isAlphaPremultiplied(),
                                                null);
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.