Examples of SunWritableRaster


Examples of ae.sun.awt.image.SunWritableRaster

        case DataBuffer.TYPE_USHORT:
            return new ShortBandedRaster(bsm, dataBuffer, location);

        case DataBuffer.TYPE_INT:
            return new SunWritableRaster(bsm, dataBuffer, location);

        default:
            throw new IllegalArgumentException("Unsupported data type " +
                                                dataType);
        }
View Full Code Here

Examples of ae.sun.awt.image.SunWritableRaster

        if (dataType == DataBuffer.TYPE_BYTE &&
            (bitsPerPixel == 1 || bitsPerPixel == 2 || bitsPerPixel == 4)) {
            return new BytePackedRaster(mppsm, dataBuffer, location);
        } else {
            return new SunWritableRaster(mppsm, dataBuffer, location);
        }
    }
View Full Code Here

Examples of ae.sun.awt.image.SunWritableRaster

            return new BytePackedRaster(sm, db, location);
        }

        // we couldn't do anything special - do the generic thing

        return new SunWritableRaster(sm,db,location);
    }
View Full Code Here

Examples of ae.sun.awt.image.SunWritableRaster

     * the same SampleModel and a new initialized DataBuffer.
     * @return a compatible <code>WritableRaster</code> with the same sample
     *         model and a new data buffer.
     */
    public WritableRaster createCompatibleWritableRaster() {
        return new SunWritableRaster(sampleModel, new Point(0,0));
    }
View Full Code Here

Examples of ae.sun.awt.image.SunWritableRaster

                                          ((w <= 0) ? "width" : "height"));
        }

        SampleModel sm = sampleModel.createCompatibleSampleModel(w,h);

        return new SunWritableRaster(sm, new Point(0,0));
    }
View Full Code Here

Examples of sun.awt.image.SunWritableRaster

        default:
            throw new IllegalArgumentException("Unsupported data type " +
                                                dataType);
        }

        SunWritableRaster raster = (SunWritableRaster)
            createInterleavedRaster(d, w, h, scanlineStride,
                                    pixelStride, bandOffsets, location);
        raster.setStolen(false);
        return raster;
    }
View Full Code Here

Examples of sun.awt.image.SunWritableRaster

        default:
            throw new IllegalArgumentException("Unsupported data type " +
                                                dataType);
        }

        SunWritableRaster raster = (SunWritableRaster)
            createBandedRaster(d, w, h, scanlineStride,
                               bankIndices, bandOffsets, location);
        raster.setStolen(false);
        return raster;
    }
View Full Code Here

Examples of sun.awt.image.SunWritableRaster

        default:
            throw new IllegalArgumentException("Unsupported data type " +
                                                dataType);
        }

        SunWritableRaster raster = (SunWritableRaster)
            createPackedRaster(d, w, h, w, bandMasks, location);
        raster.setStolen(false);
        return raster;
    }
View Full Code Here

Examples of sun.awt.image.SunWritableRaster

            default:
                throw new IllegalArgumentException("Unsupported data type " +
                                                   dataType);
            }

            SunWritableRaster raster = (SunWritableRaster)
                createPackedRaster(d, w, h, bitsPerBand, location);
            raster.setStolen(false);
            return raster;
        }
    }
View Full Code Here

Examples of sun.awt.image.SunWritableRaster

        case DataBuffer.TYPE_USHORT:
            return new ShortBandedRaster(bsm, dataBuffer, location);

        case DataBuffer.TYPE_INT:
            return new SunWritableRaster(bsm, dataBuffer, location);

        default:
            throw new IllegalArgumentException("Unsupported data type " +
                                                dataType);
        }
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.