public class FITSDataDouble extends FITSData
_fitsImage, _height, _naxis, _width
Constructor and Description |
---|
FITSDataDouble(FITSImage fitsImage)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Raster |
getPreviewImage(Raster tile,
int factor)
Return a prescaled preview image at "1/factor" of the normal size in the given
raster tile.
|
Raster |
getTile(Raster tile,
int subsample,
int scaledWidth,
int scaledHeight)
Fill in the given tile with the appropriate image data.
|
public FITSDataDouble(FITSImage fitsImage)
public Raster getTile(Raster tile, int subsample, int scaledWidth, int scaledHeight) throws IOException
If the memory mapped buffer is not null, the Y axis will be flipped to the normal orientation for display, otherwise this needs to be done later in the display widget.
getTile
in class FITSData
tile
- the tile to fill with datasubsample
- the increment to use when zooming out using the mapped byte bufferscaledWidth
- the total image width in pixels (after prescaling, may be different than the "real" width)scaledHeight
- the total image height in pixels (after prescaling, may be different than the "real" height)IOException
public Raster getPreviewImage(Raster tile, int factor) throws IOException
getPreviewImage
in class FITSData
IOException
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.