com.quadrique.jbuildingblocks.core.image
Class JbbImage

java.lang.Object
  extended by com.quadrique.jbuildingblocks.core.image.JbbImage

public class JbbImage
extends Object

This class provides convenience routine to manipulate image files.

Author:
Hervé Rivere

Constructor Summary
JbbImage()
           
 
Method Summary
static double constructDouble(byte[] in, int offset)
           
static int constructInt(byte[] in, int offset)
           
static int constructInt3(byte[] in, int offset)
           
static long constructLong(byte[] in, int offset)
           
static short constructShort(byte[] in, int offset)
           
 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 !!!!
 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.
static void main(String[] args)
           
static JbbImage newInstance()
           
 Image read(FileInputStream fs)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JbbImage

public JbbImage()
Method Detail

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.