|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.honeywell.imagingmanager.ImagingManager
public class ImagingManager
ImagingManager contains methods for capturing, previewing and image processing.
Field Summary |
---|
Constructor Summary | |
---|---|
ImagingManager(Context context,
Handler hander)
Constructors shows that ImagingManager needs 3 parameters to accomplish the whole functionality. |
Method Summary | |
---|---|
int |
doImageAction(BitmapParcel bmpparcel,
int type)
Do real image functionality depending on type when decoder is ready. |
java.lang.String |
getAPIRevision()
Return a string containing the current revision information of decoder service. |
int |
getEngineID()
Return the ID of the image engine. |
int |
getEngineType()
Return the Type of the image engine. |
int |
getImageHeight()
Get the width of image captured from engine. |
void |
getImagerProperties(ImagerProperties imgProp)
|
int |
getImageWidth()
Get the width of captured image from engine. |
byte[] |
getLastImage(ImageAttributes imgProperty)
|
int |
getPreviewingWidth()
Get the width of captured image from engine. |
int |
getPreviewngHeight()
Get the width of image captured from engine. |
int |
ImageProcessingFrame(Bitmap bmpin,
Bitmap bmpout,
int type)
Make the bitmap object to be image processed and translated to corresponding format. |
int |
release()
Closes the connection to decoder service. |
boolean |
saveBitmap(java.lang.String filename,
int imagetype,
Bitmap bitmap)
Saves captured image into a file with specified path. |
void |
sendImageRequest(int type)
Send a request to decoder to do imaging functionality. |
int |
setExposureMode(int mode)
|
int |
setExposureSettings(int[] expSettings)
|
int |
setLightMode(int mode)
This method is called to control light mode. |
int |
setProfileType(int type)
Set profile type of imaging. |
int |
startScanning()
Start scanning procedure. |
int |
stopScanning()
Stop scanning procedure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImagingManager(Context context, Handler hander)
context
- The Context of application which wants to launch Imaging.hander
- The Handler object to handle some messages from capturing
and previewing procedure; usually it will refresh the screen
to show image or previewing image.view
- The ImagingView object to control the appearance of image.Method Detail |
---|
public int release() throws java.io.IOException
java.io.IOException
public int getImageWidth()
public int getImageHeight()
public int getPreviewingWidth()
public int getPreviewngHeight()
public int doImageAction(BitmapParcel bmpparcel, int type)
bmpparcel
- Wrap a bitmap object to be captured or previewing.type
- If type equals 0, do capture procedure and the wrapped
bitmap's resolution is getImageWidth()
and
getImageWidth()
.If image functionality is successful,
send MESSAGE_IMAAGE_SUC to main thread. If type equals 1 ,do
previewing frame and the wapped bitmap's resolution is
getPreviewingWidth()
and getPreviewngHeight()
.If
image functionality is successful, send MESSAGE_PRVIEWING_SUC
to main thread.public void sendImageRequest(int type)
type
- If type equals 0, a request for capturing. If type equals 1
,a request for previewing.public int setProfileType(int type)
public int ImageProcessingFrame(Bitmap bmpin, Bitmap bmpout, int type)
bmpin
- The bitmap object to be passed into to do image processing.bmpout
- The bitmap object to be shown.type
- The bitmap object to be shown.
public int setLightMode(int mode)
mode
- Desired lights mode @see com.honeywell.decodemanager.barcode.CommonDefine.LightsModepublic boolean saveBitmap(java.lang.String filename, int imagetype, Bitmap bitmap)
filename
- The string object contains the absolute path. If filename
is NULL, try to save captured image into a file with an
appointed file path.imagetype
- The type of image formate:IMAGE_PNG or IMAGE_JPEG.bitmap
- The Bitmap object to be compressed into a image file
public int getEngineID()
public int getEngineType()
public int startScanning()
public int stopScanning()
public int setExposureSettings(int[] expSettings)
public int setExposureMode(int mode)
public void getImagerProperties(ImagerProperties imgProp)
public java.lang.String getAPIRevision()
RemoteException
public byte[] getLastImage(ImageAttributes imgProperty)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |