summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2014-05-15 20:15:06 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-05-15 20:15:06 +0000
commitdbef65f1a170c8abd819a609aeb30797b2407c9a (patch)
tree6a7087242117fbef20d3a4ce7c5b7387c613e4e1 /api
parenta3d5d3ca1140304e26c41cc29b029dc9c5330b1b (diff)
parent2961769ea94f69c191a2dd785b2504666c7292d0 (diff)
downloadframeworks_base-dbef65f1a170c8abd819a609aeb30797b2407c9a.zip
frameworks_base-dbef65f1a170c8abd819a609aeb30797b2407c9a.tar.gz
frameworks_base-dbef65f1a170c8abd819a609aeb30797b2407c9a.tar.bz2
Merge "Adding APIs to render PDF documents."
Diffstat (limited to 'api')
-rw-r--r--api/current.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt
index f8b6f59..5fb305a 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -10117,6 +10117,7 @@ package android.graphics {
ctor public Matrix(android.graphics.Matrix);
method public void getValues(float[]);
method public boolean invert(android.graphics.Matrix);
+ method public boolean isAffine();
method public boolean isIdentity();
method public void mapPoints(float[], int, float[], int, int);
method public void mapPoints(float[], float[]);
@@ -11356,6 +11357,24 @@ package android.graphics.pdf {
method public android.graphics.pdf.PdfDocument.PageInfo.Builder setContentRect(android.graphics.Rect);
}
+ public final class PdfRenderer implements java.lang.AutoCloseable {
+ ctor public PdfRenderer(android.os.ParcelFileDescriptor) throws java.io.IOException;
+ method public void close();
+ method public void closePage(android.graphics.pdf.PdfRenderer.Page);
+ method public int getPageCount();
+ method public android.graphics.pdf.PdfRenderer.Page openPage(int);
+ method public boolean shouldScaleForPrinting();
+ }
+
+ public final class PdfRenderer.Page {
+ method public int getHeight();
+ method public int getIndex();
+ method public int getWidth();
+ method public void render(android.graphics.Bitmap, android.graphics.Rect, android.graphics.Matrix, int);
+ field public static final int RENDER_MODE_FOR_DISPLAY = 1; // 0x1
+ field public static final int RENDER_MODE_FOR_PRINT = 2; // 0x2
+ }
+
}
package android.hardware {