public class PDFRegionDecoder
extends java.lang.Object
PdfRenderer.Page into a Bitmap| Constructor and Description |
|---|
PDFRegionDecoder(int position,
java.io.File file,
float scale)
basic constructor for PDFDecoder.
|
| Modifier and Type | Method and Description |
|---|---|
android.graphics.Bitmap |
decodeRegion(android.graphics.Rect rect,
int sampleSize)
Creates a
Bitmap in the correct size and renders the region defined by rect of the
PdfRenderer.Page into it. |
android.graphics.Point |
init(android.content.Context context,
android.net.Uri uri)
Initializes the region decoder.
|
boolean |
isReady() |
void |
recycle()
close everything
|
public PDFRegionDecoder(int position,
java.io.File file,
float scale)
scale: - the scale factorpublic android.graphics.Point init(android.content.Context context,
android.net.Uri uri)
throws java.lang.Exception
context - not used hereuri - not used here (file is already loaded)java.lang.Exceptionpublic android.graphics.Bitmap decodeRegion(android.graphics.Rect rect,
int sampleSize)
Bitmap in the correct size and renders the region defined by rect of the
PdfRenderer.Page into it.rect - the rect of the PdfRenderer.Page to be rendered to the bitmapsampleSize - the sample sizepublic boolean isReady()
public void recycle()