From 866d688766dbfc01d69f586bfa197d57df0d9b96 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 24 Oct 2018 17:31:01 +0000 Subject: Implement FPDFImageObj_GetMatrix(). BUG=pdfium:1183 Change-Id: I5b1051d8924264aa12534466ee51b2718b3eca67 Reviewed-on: https://pdfium-review.googlesource.com/c/44514 Reviewed-by: Tom Sepez Commit-Queue: Lei Zhang --- public/fpdf_edit.h | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'public') 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 -- cgit v1.2.3