com.sewoo.image.android
Class AndroidImageLoader

java.lang.Object
  extended by com.sewoo.image.android.AndroidImageLoader
All Implemented Interfaces:
ImageLoaderIF
Direct Known Subclasses:
ImageLoader

public class AndroidImageLoader
extends java.lang.Object
implements ImageLoaderIF

Load the image in Android OS Environment.

Since:
1.04

Constructor Summary
AndroidImageLoader()
           
 
Method Summary
 int[][] getByteArray(android.graphics.Bitmap image)
          Convert Image object into 2d array ARGB
 android.graphics.Bitmap getImage()
           
 android.graphics.Bitmap getImage(java.lang.String filepath)
           
 int getThresHoldValue()
          Get the threshold value that using for convert B/W image.
 int getThresHoldValue(int[][] tpix)
          Get the threshold value that using for convert B/W image.
 int[][] imageLoad(java.lang.String filepath)
          File open and convert 2-Dimension array.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndroidImageLoader

public AndroidImageLoader()
Method Detail

getThresHoldValue

public int getThresHoldValue()
Get the threshold value that using for convert B/W image.

Specified by:
getThresHoldValue in interface ImageLoaderIF
Returns:
the threshold value that using for convert B/W image.

getThresHoldValue

public int getThresHoldValue(int[][] tpix)
Get the threshold value that using for convert B/W image.

Specified by:
getThresHoldValue in interface ImageLoaderIF
Parameters:
tpix[][] - 2-Dimension image array.
Returns:
the threshold value that using for convert B/W image.

getByteArray

public int[][] getByteArray(android.graphics.Bitmap image)
Convert Image object into 2d array ARGB

Parameters:
Bitmap - image
Returns:

getImage

public android.graphics.Bitmap getImage(java.lang.String filepath)
                                 throws java.io.IOException
Parameters:
filepath -
Returns:
Image
Throws:
java.io.IOException

getImage

public android.graphics.Bitmap getImage()

imageLoad

public int[][] imageLoad(java.lang.String filepath)
                  throws java.io.IOException
File open and convert 2-Dimension array.

Specified by:
imageLoad in interface ImageLoaderIF
Parameters:
filepath -
Returns:
int [][] - 2 Dimension Array (RGB value). or null.
Throws:
java.io.IOException