summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
authorwileyrya <wileyrr@gmail.com>2017-05-26 15:20:23 -0500
committerChromium commit bot <commit-bot@chromium.org>2017-05-26 20:45:40 +0000
commit06bbdef296b483e6f666156b198319019d3c6373 (patch)
treeb63b6fe150abc4fb9eef8db39c76c63a60ba0ca9 /fpdfsdk
parentcdfc035f4ea2e786c7d7820e143c18bdb11fac3f (diff)
downloadpdfium-06bbdef296b483e6f666156b198319019d3c6373.tar.xz
Add public API for setting the blend mode on a page object.
BUG=pdfium:720 R=npm@chromium.org Change-Id: I2a43b34da6946265ca06502b9ff19ad352fd18cb Reviewed-on: https://pdfium-review.googlesource.com/5953 Commit-Queue: Nicolás Peña <npm@chromium.org> Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'fpdfsdk')
-rw-r--r--fpdfsdk/fpdfeditpage.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/fpdfsdk/fpdfeditpage.cpp b/fpdfsdk/fpdfeditpage.cpp
index 37469ed23a..a474414435 100644
--- a/fpdfsdk/fpdfeditpage.cpp
+++ b/fpdfsdk/fpdfeditpage.cpp
@@ -264,6 +264,15 @@ DLLEXPORT void STDCALL FPDFPageObj_Transform(FPDF_PAGEOBJECT page_object,
pPageObj->Transform(matrix);
}
+DLLEXPORT void STDCALL FPDFPageObj_SetBlendMode(FPDF_PAGEOBJECT page_object,
+ FPDF_BYTESTRING blend_mode) {
+ CPDF_PageObject* pPageObj = static_cast<CPDF_PageObject*>(page_object);
+ if (!pPageObj)
+ return;
+
+ pPageObj->m_GeneralState.SetBlendMode(blend_mode);
+}
+
DLLEXPORT void STDCALL FPDFPage_TransformAnnots(FPDF_PAGE page,
double a,
double b,