summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-24 17:31:01 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-24 17:31:01 +0000
commit866d688766dbfc01d69f586bfa197d57df0d9b96 (patch)
tree4a45f43f095c80ec88f8d8202b3e4e5570563ab9 /public
parentcd11df62b64655c24d44a65b2a76d723fc214077 (diff)
downloadpdfium-866d688766dbfc01d69f586bfa197d57df0d9b96.tar.xz
Implement FPDFImageObj_GetMatrix().
BUG=pdfium:1183 Change-Id: I5b1051d8924264aa12534466ee51b2718b3eca67 Reviewed-on: https://pdfium-review.googlesource.com/c/44514 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'public')
-rw-r--r--public/fpdf_edit.h27
1 files changed, 26 insertions, 1 deletions
diff --git a/public/fpdf_edit.h b/public/fpdf_edit.h
index 42c654c3de..5d654ba305 100644
--- a/public/fpdf_edit.h
+++ b/public/fpdf_edit.h
@@ -565,6 +565,31 @@ FPDFImageObj_LoadJpegFileInline(FPDF_PAGE* pages,
FPDF_PAGEOBJECT image_object,
FPDF_FILEACCESS* fileAccess);
+// Experimental API.
+// Get the transform matrix of an image object.
+//
+// image_object - handle to an image object.
+// a - matrix value.
+// b - matrix value.
+// c - matrix value.
+// d - matrix value.
+// e - matrix value.
+// f - matrix value.
+//
+// The matrix is composed as:
+// |a c e|
+// |b d f|
+// and used to scale, rotate, shear and translate the image.
+//
+// Returns TRUE on success.
+FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFImageObj_GetMatrix(FPDF_PAGEOBJECT path,
+ double* a,
+ double* b,
+ double* c,
+ double* d,
+ double* e,
+ double* f);
+
// Set the transform matrix of |image_object|.
//
// image_object - handle to an image object.
@@ -578,7 +603,7 @@ FPDFImageObj_LoadJpegFileInline(FPDF_PAGE* pages,
// The matrix is composed as:
// |a c e|
// |b d f|
-// and can be used to scale, rotate, shear and translate the |page| annotations.
+// and can be used to scale, rotate, shear and translate the |image_object|.
//
// Returns TRUE on success.
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV