com.iproject.wbmpcreator
Class SimpleImageFile

java.lang.Object
  |
  +--java.awt.Component
        |
        +--com.iproject.wbmpcreator.SimpleImageFile

public class SimpleImageFile
extends java.awt.Component

See Also:
Serialized Form

Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
SimpleImageFile()
          Empty constructor for instantiating the class.
SimpleImageFile(byte[] array)
          Create image from byte array
SimpleImageFile(java.lang.String filename)
          Create image from image file
SimpleImageFile(java.net.URL imageURL)
          Create image from URL
 
Method Summary
 java.awt.Image getInnerImg()
           
 int getLength()
          Method to obtain the length of a loaded image
 int[][] getPointArray()
          Method to get the array of pixels reprenenting the image
 int getWidth()
          Method to obtain the width of a loaded image
 void setInnerImg(java.awt.Image newInnerImg)
           
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleImageFile

public SimpleImageFile()
Empty constructor for instantiating the class.

SimpleImageFile

public SimpleImageFile(java.net.URL imageURL)
Create image from URL

SimpleImageFile

public SimpleImageFile(java.lang.String filename)
Create image from image file

SimpleImageFile

public SimpleImageFile(byte[] array)
Create image from byte array
Method Detail

setInnerImg

public void setInnerImg(java.awt.Image newInnerImg)

getInnerImg

public java.awt.Image getInnerImg()

getLength

public int getLength()
Method to obtain the length of a loaded image

getWidth

public int getWidth()
Method to obtain the width of a loaded image
Overrides:
getWidth in class java.awt.Component

getPointArray

public int[][] getPointArray()
                      throws java.lang.InterruptedException
Method to get the array of pixels reprenenting the image