Examples of copyBinaryDataToRaster()


Examples of com.lightcrafts.mediax.jai.RasterAccessor.copyBinaryDataToRaster()

        if(dst.isBinary()) {
            byte[] dstBits = dst.getBinaryDataArray();
            System.arraycopy(src.getBinaryDataArray(), 0,
                             dstBits, 0, dstBits.length);

            dst.copyBinaryDataToRaster();

      return;
        }

        /* Find out what kind of data type is used to store the image */
 
View Full Code Here

Examples of com.lightcrafts.mediax.jai.RasterAccessor.copyBinaryDataToRaster()

            for(int i = 0; i < length; i++) {
                // "Multiply" is equivalent to "And".
                dstBits[i] = (byte)(src1Bits[i] & src2Bits[i]);
            }

            d.copyBinaryDataToRaster();

      return;
        }

        int src1LineStride = s1.getScanlineStride();
View Full Code Here

Examples of com.lightcrafts.mediax.jai.RasterAccessor.copyBinaryDataToRaster()

            byte[] srcBits = srcAccessor.getBinaryDataArray();
            byte[] dstBits = dstAccessor.getBinaryDataArray();

            System.arraycopy(srcBits, 0, dstBits, 0, dstBits.length);

            dstAccessor.copyBinaryDataToRaster();
        } else {
            switch (dstAccessor.getDataType()) {
            case DataBuffer.TYPE_BYTE:
                byteLoop(srcAccessor,dstAccessor);
                break;
View Full Code Here

Examples of com.lightcrafts.mediax.jai.RasterAccessor.copyBinaryDataToRaster()

                // "Subtract" is equivalent to the following
                // when -1 is clamped to 0.
                dstBits[i] = (byte)(src1Bits[i] & (byte)(~(src2Bits[i])));
            }

            d.copyBinaryDataToRaster();

      return;
        }

        switch (d.getDataType()) {
View Full Code Here

Examples of com.lightcrafts.mediax.jai.RasterAccessor.copyBinaryDataToRaster()

            int length = dstBits.length;
            for(int i = 0; i < length; i++) {
                dstBits[i] = (byte)(src1Bits[i] | src2Bits[i]);
            }

            d.copyBinaryDataToRaster();

            return;
        }
        int src1LineStride = s1.getScanlineStride();
        int src1PixelStride = s1.getPixelStride();
View Full Code Here

Examples of com.lightcrafts.mediax.jai.RasterAccessor.copyBinaryDataToRaster()

            int length = dstBits.length;
            for(int i = 0; i < length; i++) {
                dstBits[i] = (byte)(src1Bits[i] ^ src2Bits[i]);
            }

            d.copyBinaryDataToRaster();

      return;
        }

        int src1LineStride = s1.getScanlineStride();
View Full Code Here

Examples of com.lightcrafts.mediax.jai.RasterAccessor.copyBinaryDataToRaster()

            int length = dstBits.length;
            for(int i = 0; i < length; i++) {
                dstBits[i] = (byte)(~(srcBits[i]));
            }

            dst.copyBinaryDataToRaster();

      return;
        }

        int srcLineStride = src.getScanlineStride();
View Full Code Here

Examples of com.lightcrafts.mediax.jai.RasterAccessor.copyBinaryDataToRaster()

            // Subtraction in this case boils down to copying image 1.
            System.arraycopy(s1.getBinaryDataArray(), 0,
                             dstBits, 0, dstBits.length);

            d.copyBinaryDataToRaster();

      return;
        }

        int src1LineStride = s1.getScanlineStride();
View Full Code Here

Examples of com.lightcrafts.mediax.jai.RasterAccessor.copyBinaryDataToRaster()

            byte[] dstBits = d.getBinaryDataArray();
            int length = dstBits.length;
            for(int i = 0; i < length; i++) {
                dstBits[i] = (byte)(~(srcBits[i]));
            }
            d.copyBinaryDataToRaster();
        } else {
            switch (d.getDataType()) {
            case DataBuffer.TYPE_BYTE:
                computeRectByte(s, d);
                break;
View Full Code Here

Examples of com.lightcrafts.mediax.jai.RasterAccessor.copyBinaryDataToRaster()

            int length = dstBits.length;
            for(int i = 0; i < length; i++) {
                dstBits[i] = (byte)(src1Bits[i] & src2Bits[i]);
            }

            d.copyBinaryDataToRaster();

            return;
        }

        int src1LineStride = s1.getScanlineStride();
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.