jsky.image.fits.codec
Class FITSDataDouble
java.lang.Object
jsky.image.fits.codec.FITSData
jsky.image.fits.codec.FITSDataDouble
public class FITSDataDouble
- extends FITSData
Used for double FITS image data (2D).
- Version:
- $Revision: 1.2 $
- Author:
- Allan Brighton
Method Summary |
java.awt.image.Raster |
getPreviewImage(java.awt.image.Raster tile,
int factor)
Return a prescaled preview image at "1/factor" of the normal size in the given
raster tile. |
java.awt.image.Raster |
getTile(java.awt.image.Raster tile,
int subsample,
int scaledWidth,
int scaledHeight)
Fill in the given tile with the appropriate image data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FITSDataDouble
public FITSDataDouble(FITSImage fitsImage)
- Constructor
getTile
public java.awt.image.Raster getTile(java.awt.image.Raster tile,
int subsample,
int scaledWidth,
int scaledHeight)
throws java.io.IOException
- Fill in the given tile with the appropriate image data.
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.
- Specified by:
getTile
in class FITSData
- Parameters:
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)
- Returns:
- the tile argument
- Throws:
java.io.IOException
getPreviewImage
public java.awt.image.Raster getPreviewImage(java.awt.image.Raster tile,
int factor)
throws java.io.IOException
- Return a prescaled preview image at "1/factor" of the normal size in the given
raster tile.
- Specified by:
getPreviewImage
in class FITSData
- Throws:
java.io.IOException