com.quadrique.jbuildingblocks.core.image
Class JbbImage
java.lang.Object
com.quadrique.jbuildingblocks.core.image.JbbImage
public class JbbImage
- extends Object
This class provides convenience routine to manipulate image files.
- Author:
- Hervé Rivere
JbbImage
public JbbImage()
newInstance
public static JbbImage newInstance()
- Returns:
- a new instance
constructInt
public static int constructInt(byte[] in,
int offset)
constructInt3
public static int constructInt3(byte[] in,
int offset)
constructLong
public static long constructLong(byte[] in,
int offset)
constructDouble
public static double constructDouble(byte[] in,
int offset)
constructShort
public static short constructShort(byte[] in,
int offset)
read
public Image read(FileInputStream fs)
load
public Image load(String sdir,
String sfile)
- load method - see read for details
Arguments:
sdir and sfile are the result of the FileDialog()
getDirectory() and getFile() methods.
Returns:
Image Object, be sure to check for (Image)null !!!!
load
public Image load(String sdir)
- load method - see read for details
Arguments:
sdir - full path name
Returns:
Image Object, be sure to check for (Image)null !!!!
main
public static void main(String[] args)
throws IOException
- Throws:
IOException
Copyright © 2001-2008 Quadrique Corporation. All Rights Reserved.