roomba.roombanetwork.util
Class ImageConverter

java.lang.Object
  extended by roomba.roombanetwork.util.ImageConverter

public class ImageConverter
extends java.lang.Object


Constructor Summary
ImageConverter()
           
 
Method Summary
static java.lang.String bytesToHex(byte[] data)
           
static java.lang.String byteToHex(byte data)
           
static java.awt.Image convertFromHexString(java.lang.String hexString, int width, int height)
           
static java.awt.image.BufferedImage convertToBufferedImage(java.awt.Image image, int width, int height)
           
static java.lang.String convertToString(java.awt.Image image, int width, int height)
           
static int hexCharToInt(char hexChar)
           
static byte[] hexToBytes(java.lang.String hexString)
           
static void main(java.lang.String[] args)
           
static char toHexChar(int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageConverter

public ImageConverter()
Method Detail

convertToBufferedImage

public static java.awt.image.BufferedImage convertToBufferedImage(java.awt.Image image,
                                                                  int width,
                                                                  int height)

convertToString

public static java.lang.String convertToString(java.awt.Image image,
                                               int width,
                                               int height)

convertFromHexString

public static java.awt.Image convertFromHexString(java.lang.String hexString,
                                                  int width,
                                                  int height)

bytesToHex

public static java.lang.String bytesToHex(byte[] data)

byteToHex

public static java.lang.String byteToHex(byte data)

toHexChar

public static char toHexChar(int i)

hexToBytes

public static byte[] hexToBytes(java.lang.String hexString)

hexCharToInt

public static int hexCharToInt(char hexChar)

main

public static void main(java.lang.String[] args)