private class ScanFragment.ScanAsyncTask
extends android.os.AsyncTask<java.lang.Void,java.lang.Void,android.graphics.Bitmap>
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Integer,android.graphics.PointF> |
points
The points to crop from
|
Constructor and Description |
---|
ScanAsyncTask(java.util.Map<java.lang.Integer,android.graphics.PointF> points)
The constructor to store the points
|
Modifier and Type | Method and Description |
---|---|
protected android.graphics.Bitmap |
doInBackground(java.lang.Void... param)
The main function to crop the image in background
|
protected void |
onPostExecute(android.graphics.Bitmap bitmap)
A function to hide the progress dialog after performing the main function.
|
protected void |
onPreExecute()
A function to show a progress dialog before performing the main function.
|
private java.util.Map<java.lang.Integer,android.graphics.PointF> points
ScanAsyncTask(java.util.Map<java.lang.Integer,android.graphics.PointF> points)
points
- the points to crop the image fromprotected android.graphics.Bitmap doInBackground(java.lang.Void... param)
doInBackground
in class android.os.AsyncTask<java.lang.Void,java.lang.Void,android.graphics.Bitmap>
param
- i don't know what it does but it is not requiredprotected void onPostExecute(android.graphics.Bitmap bitmap)
onPostExecute
in class android.os.AsyncTask<java.lang.Void,java.lang.Void,android.graphics.Bitmap>
protected void onPreExecute()
onPreExecute
in class android.os.AsyncTask<java.lang.Void,java.lang.Void,android.graphics.Bitmap>