/** * Creates a new ByteBufferRasterData instance. * * @param view * the raster rectangle defining the sample domain of this raster data. * @param rasterWidth * width of the raster data * @param rasterHeight * height of the raster data * @param reader * to be used to read the data from a location. * @param originalDataInfo * containing information about this raster data object * @param init * true if the ByteBuffer should be initialized */ protected ByteBufferRasterData( DataView view, int rasterWidth, int rasterHeight, RasterReader reader, RasterDataInfo originalDataInfo, boolean init ) { // this.view = view; this.rasterWidth = rasterWidth; this.rasterHeight = rasterHeight; this.dataInfo = originalDataInfo; this.dataAccess = new BufferAccess( reader, rasterWidth, rasterHeight, view, originalDataInfo, getPixelStride(), getLineStride(), getBandStride() ); if ( init ) { initByteBuffer(); } }