net.sourceforge.javaocr.awt
Class AwtImage
java.lang.Object
net.sourceforge.javaocr.ocr.AbstractLinearImage
net.sourceforge.javaocr.ocr.PixelImage
net.sourceforge.javaocr.awt.AwtImage
- All Implemented Interfaces:
- Image
public class AwtImage
- extends PixelImage
encapsulates AWT related functionality (image creation out of awt)
|
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.AbstractLinearImage |
column, copy, flip, get, getArrayHeight, getArrayWidth, getAspectRatio, getHeight, getOriginX, getOriginY, getWidth, hasNext, horizontalSpanEquals, iterateH, iterateH, iterateV, iterateV, next, next, put, row, setCurrentIndex, verticalSpanEquals |
AwtImage
public AwtImage(Image image)
- create pixel image out of awt image
- Parameters:
image -
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.