All Packages Class Hierarchy This Package Previous Next Index
Class ncsa.hdf.message.HDFRIS24
java.lang.Object
|
+----ncsa.hdf.message.HDFObject
|
+----ncsa.hdf.message.HDFGR
|
+----ncsa.hdf.message.HDFRIS24
- public class HDFRIS24
- extends HDFGR
HDFRIS24 holds HDF RIS24 information
- Version:
- 1.1.3 September 22 1997
- Author:
- Peter X. Cao
-
HDFRIS24()
- Constructs an HDFRIS24 with default parameters
-
HDFRIS24(HDFObjectNode, String)
- Construct an HDFRIS24 with specified HDFObjectNode and filename
-
byte24to8(byte[], int, int, byte[])
- convert 24-bit image data to 8-bit image data
-
readInfo(HDFLibrary, String, HDFObjectNode)
- get HDF 24-bit raster image information for the selected HDF file
-
service()
- overwrites HDFGR
-
toClient()
- create a message for sending to the client
HDFRIS24
public HDFRIS24()
- Constructs an HDFRIS24 with default parameters
HDFRIS24
public HDFRIS24(HDFObjectNode node,
String filename)
- Construct an HDFRIS24 with specified HDFObjectNode and filename
- Parameters:
- node - the HDFObjectNode to be transfered to the server
- filename - the requested HDF file
toClient
public HDFMessage toClient()
- create a message for sending to the client
- Returns:
- the HDFMessage created by this object
- Overrides:
- toClient in class HDFGR
service
public void service()
- overwrites HDFGR
- Overrides:
- service in class HDFGR
readInfo
public static String readInfo(HDFLibrary hdf,
String filename,
HDFObjectNode node) throws HDFException
- get HDF 24-bit raster image information for the selected HDF file
- Parameters:
- filename - the string of the hdf file name
- node - the HDFObjectNode
- Returns:
- the string the HDF 24-bit raster image information
byte24to8
public byte[] byte24to8(byte p24[],
int w,
int h,
byte palette[])
- convert 24-bit image data to 8-bit image data
- Parameters:
- p24 - the byte array of the 24-bit image data
- w - the image width
- h - the image height
- palette - the image palette
- Returns:
- the byte array of the 8-bit image data
All Packages Class Hierarchy This Package Previous Next Index