Package java.awt.image

Examples of java.awt.image.BandedSampleModel


            final int height = getHeight();
            if (numBands == 3)
                setSampleModel(new PixelInterleavedSampleModel(NetCDFUtilities.getRawDataType(var), width, height, numBands,
                        width * numBands, new int[]{0, 1, 2}));
            else
                setSampleModel(new BandedSampleModel(NetCDFUtilities.getRawDataType(var), width, height, numBands));
        }
View Full Code Here


     * Creates a {@code SampleModel} with the specified
     * width and height that has a data layout compatible with
     * this {@code ColorModel}
     */
    public SampleModel createCompatibleSampleModel(final int width, final int height) {
        return new BandedSampleModel(transferType, width, height, numBands);
    }
View Full Code Here

            final BufferedImage ret = new BufferedImage(new ComponentColorModel(
                    ColorSpace.getInstance(ColorSpace.CS_sRGB), false, false,
                    Transparency.OPAQUE, buffer.getDataType()),
                    Raster.createWritableRaster(
                            new BandedSampleModel(buffer.getDataType(), info
                                    .getWidth(), info.getHeight(), 3), buffer,
                            new Point()), false, null);
            canThrow = true;
            return ret;
        } finally {
View Full Code Here

TOP

Related Classes of java.awt.image.BandedSampleModel

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.