/** * Returns the bounding box of the filtered destination Raster. Since * this is not a geometric operation, the bounding box does not * change. * @param pSrc the {@code Raster} to be filtered * @return the bounds of the filtered definition {@code Raster}. */ public final Rectangle2D getBounds2D(Raster pSrc) { return pSrc.getBounds(); }
/** * Returns the bounding box of the filtered destination Raster. Since * this is not a geometric operation, the bounding box does not * change. * @param pSrc the {@code Raster} to be filtered * @return the bounds of the filtered definition {@code Raster}. */ public final Rectangle2D getBounds2D(Raster pSrc) { return pSrc.getBounds(); }
public Rectangle2D getBounds2D(Raster src) { return src.getBounds(); }
public Rectangle2D getBounds2D(Raster src) { return (Rectangle) src.getBounds().clone(); }
/** * Returns the bounding box of the filtered destination Raster. Since * this is not a geometric operation, the bounding box does not * change. * @param pSrc the {@code Raster} to be filtered * @return the bounds of the filtered definition {@code Raster}. */ public final Rectangle2D getBounds2D(Raster pSrc) { return pSrc.getBounds(); }
/** * Returns the bounding box of the filtered destination Raster. Since * this is not a geometric operation, the bounding box does not * change. * @param pSrc the {@code Raster} to be filtered * @return the bounds of the filtered definition {@code Raster}. */ public final Rectangle2D getBounds2D(Raster pSrc) { return pSrc.getBounds(); }
/** * Returns the bounding box of the filtered destination Raster. Since * this is not a geometric operation, the bounding box does not * change. * @param pSrc the {@code Raster} to be filtered * @return the bounds of the filtered definition {@code Raster}. */ public final Rectangle2D getBounds2D(Raster pSrc) { return pSrc.getBounds(); }
/** * Returns the bounding box of the filtered destination Raster. Since * this is not a geometric operation, the bounding box does not * change. * @param pSrc the {@code Raster} to be filtered * @return the bounds of the filtered definition {@code Raster}. */ public final Rectangle2D getBounds2D(Raster pSrc) { return pSrc.getBounds(); }
public static boolean isSubRaster(Raster raster) { Rectangle bounds = raster.getBounds(); return raster.getParent() != null || bounds.x != 0 || bounds.y != 0; } public static ImageInfo<BufferedImage> getIntARGBImageInfo() {
public static boolean isSubRaster(Raster raster) { Rectangle bounds = raster.getBounds(); return raster.getParent() != null || bounds.x != 0 || bounds.y != 0; } public static ImageInfo<BufferedImage> getIntARGBImageInfo() {
public Rectangle2D getBounds2D(Raster src) { return (Rectangle) src.getBounds().clone(); }
public static void copyBand(Raster src, int srcBand, WritableRaster dst, int dstBand) { Rectangle sR = src.getBounds(); Rectangle dR = dst.getBounds(); Rectangle cpR = sR.intersection(dR); copyBand(src, cpR, srcBand, dst, cpR, dstBand); }
public static void copyBand(Raster src, int srcBand, WritableRaster dst, int dstBand) { Rectangle sR = src.getBounds(); Rectangle dR = dst.getBounds(); Rectangle cpR = sR.intersection(dR); copyBand(src, cpR, srcBand, dst, cpR, dstBand); }
public static void copyBand(Raster src, int srcBand, WritableRaster dst, int dstBand) { Rectangle sR = src.getBounds(); Rectangle dR = dst.getBounds(); Rectangle cpR = sR.intersection(dR); copyBand(src, cpR, srcBand, dst, cpR, dstBand); }
public static void copyBand(Raster src, int srcBand, WritableRaster dst, int dstBand) { Rectangle sR = src.getBounds(); Rectangle dR = dst.getBounds(); Rectangle cpR = sR.intersection(dR); copyBand(src, cpR, srcBand, dst, cpR, dstBand); }
private boolean isSampleValid(int x, int y) { if (maskTile == null || !maskTile.getBounds().contains(x, y)) { int tileX = maskImage.XToTileX(x); int tileY = maskImage.YToTileY(y); maskTile = maskImage.getTile(tileX, tileY); } return maskTile.getSample(x, y, 0) != 0; }
public static void copyBand(Raster src, int srcBand, WritableRaster dst, int dstBand) { Rectangle sR = src.getBounds(); Rectangle dR = dst.getBounds(); Rectangle cpR = sR.intersection(dR); copyBand(src, cpR, srcBand, dst, cpR, dstBand); }
public static void copyBand(Raster src, int srcBand, WritableRaster dst, int dstBand) { Rectangle sR = src.getBounds(); Rectangle dR = dst.getBounds(); Rectangle cpR = sR.intersection(dR); copyBand(src, cpR, srcBand, dst, cpR, dstBand); }
CachedTileImpl(TileId tileId, Raster tile, Object tileCacheMetric) { this.tileId = tileId; this.file = new File(cacheDir, getImageId(tileId.owner.get()) + "-" + tileId.tileX + "-" + tileId.tileY); this.tileCacheMetric = tileCacheMetric; this.sampleModel = tile.getSampleModel(); this.tileSize = sampleModel.getNumDataElements() * DataBuffer.getDataTypeSize(sampleModel.getTransferType()); this.location = tile.getBounds().getLocation(); this.writable = tile instanceof WritableRaster; this.tileTimeStamp = System.currentTimeMillis(); }
private UnpackedImageData getPixels(RenderedImage image) { PixelAccessor dataAccessor = new PixelAccessor(image); return dataAccessor.getPixels(image.getData(), image.getData().getBounds(), image.getSampleModel().getDataType(), false); }