From 06bbdef296b483e6f666156b198319019d3c6373 Mon Sep 17 00:00:00 2001 From: wileyrya Date: Fri, 26 May 2017 15:20:23 -0500 Subject: Add public API for setting the blend mode on a page object. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BUG=pdfium:720 R=npm@chromium.org Change-Id: I2a43b34da6946265ca06502b9ff19ad352fd18cb Reviewed-on: https://pdfium-review.googlesource.com/5953 Commit-Queue: Nicolás Peña Reviewed-by: Nicolás Peña --- public/fpdf_edit.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'public') diff --git a/public/fpdf_edit.h b/public/fpdf_edit.h index 677bdb28d3..2014e6faf4 100644 --- a/public/fpdf_edit.h +++ b/public/fpdf_edit.h @@ -311,6 +311,17 @@ DLLEXPORT FPDF_BOOL STDCALL FPDFPageObj_GetBounds(FPDF_PAGEOBJECT pageObject, float* right, float* top); +// Set the blend mode of |pageObject|. +// +// pageObject - handle to a page object. +// blend_mode - string containing the blend mode. +// +// Blend mode can be one of following: Color, ColorBurn, ColorDodge, Darken, +// Difference, Exclusion, HardLight, Hue, Lighten, Luminosity, Multiply, Normal, +// Overlay, Saturation, Screen, SoftLight +DLLEXPORT void STDCALL FPDFPageObj_SetBlendMode(FPDF_PAGEOBJECT page, + FPDF_BYTESTRING blend_mode); + // Set the stroke RGBA of a path. Range of values: 0 - 255. // // path - the handle to the path object. -- cgit v1.2.3