Package io.anyline2.camera
Interface HighResolutionImageProvider
-
- All Implemented Interfaces:
public interface HighResolutionImageProvider
An interface for providing a single picture.
-
-
Method Summary
Modifier and Type Method Description abstract void
takeHighResolutionImage()
Takes a picture from the camera and calls onImageTaken after the image is taken successfully. abstract void
setHighResolutionImageListener(@Nullable() HighResolutionImageListener highResolutionImageListener)
Sets an optional listener which is called with the final AnylineImage, once a picture was taken with the camera via the takeHighResolutionImage method. abstract void
takeHighResolutionImage(int top, int left, int right, int bottom, int scanViewWidth, int scanViewHeight)
-
-
Method Detail
-
takeHighResolutionImage
abstract void takeHighResolutionImage()
Takes a picture from the camera and calls onImageTaken after the image is taken successfully. If no HighResolutionImageListener is set, the method returns. Additionally, a picture is only taken if the safeToTakePicture flag is set to true, which means the camera is open and preview is started.
-
setHighResolutionImageListener
abstract void setHighResolutionImageListener(@Nullable() HighResolutionImageListener highResolutionImageListener)
Sets an optional listener which is called with the final AnylineImage, once a picture was taken with the camera via the takeHighResolutionImage method.
- Parameters:
highResolutionImageListener
- the listener to call if a picture was taken (or an error occurred)
-
takeHighResolutionImage
abstract void takeHighResolutionImage(int top, int left, int right, int bottom, int scanViewWidth, int scanViewHeight)
-
-
-
-