Java Code Examples for javax.media.jai.PlanarImage#YToTileY
The following examples show how to use
javax.media.jai.PlanarImage#YToTileY .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TiledImageWriter.java From orbit-image-analysis with GNU General Public License v3.0 | 4 votes |
private Raster getRaster(int x, int y) { int xt = PlanarImage.XToTileX(x, 0, tileWidth); int yt = PlanarImage.YToTileY(y, 0, tileHeight); Raster raster = getImage().getTile(xt, yt); return raster; }
Example 2
Source File: SpectrumTopComponent.java From snap-desktop with GNU General Public License v3.0 | 4 votes |
private Raster getRasterTile(PlanarImage image, int pixelX, int pixelY) { final int tileX = image.XToTileX(pixelX); final int tileY = image.YToTileY(pixelY); return image.getTile(tileX, tileY); }
Example 3
Source File: PixelInfoViewModelUpdater.java From snap-desktop with GNU General Public License v3.0 | 4 votes |
private Raster getRasterTile(PlanarImage image, int pixelX, int pixelY) { final int tileX = image.XToTileX(pixelX); final int tileY = image.YToTileY(pixelY); return image.getTile(tileX, tileY); }