net.sourceforge.javaocr.awt
Class AwtImage

java.lang.Object
  extended by net.sourceforge.javaocr.ocr.AbstractLinearImage
      extended by net.sourceforge.javaocr.ocr.PixelImage
          extended by net.sourceforge.javaocr.awt.AwtImage
All Implemented Interfaces:
Image

public class AwtImage
extends PixelImage

encapsulates AWT related functionality (image creation out of awt)


Field Summary
 
Fields inherited from class net.sourceforge.javaocr.ocr.PixelImage
pixels
 
Fields inherited from class net.sourceforge.javaocr.ocr.AbstractLinearImage
arrayHeight, arrayWidth, aspectRatio, currentIndex, height, originX, originY, width
 
Constructor Summary
AwtImage(Image image)
          create pixel image out of awt image
 
Method Summary
 Image rgbToImage(int[] rgbPixels, int width, int height, Component comp)
          retrieve awt image out of pixels
 
Methods inherited from class net.sourceforge.javaocr.ocr.PixelImage
chisel, get, put, toString
 
Methods inherited from class net.sourceforge.javaocr.ocr.AbstractLinearImage
column, copy, flip, get, getArrayHeight, getArrayWidth, getAspectRatio, getHeight, getOriginX, getOriginY, getWidth, hasNext, horizontalSpanEquals, iterateH, iterateH, iterateV, iterateV, next, next, put, row, setCurrentIndex, verticalSpanEquals
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AwtImage

public AwtImage(Image image)
create pixel image out of awt image

Parameters:
image -
Method Detail

rgbToImage

public Image rgbToImage(int[] rgbPixels,
                        int width,
                        int height,
                        Component comp)
retrieve awt image out of pixels

Parameters:
rgbPixels -
width -
height -
comp -
Returns:


Copyright © -2012. All Rights Reserved.