From 864e9fb67f42186ce24d9bf09e643c85ff89a175 Mon Sep 17 00:00:00 2001 From: wileyrya Date: Fri, 26 May 2017 11:38:14 -0500 Subject: Add public API for setting the fill color on a text object MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BUG=pdfium:719 R=npm@chromium.org Change-Id: Ifd9330de265f8419d588b65fbd6a6187f17badd1 Reviewed-on: https://pdfium-review.googlesource.com/5950 Reviewed-by: Nicolás Peña Commit-Queue: Nicolás Peña --- public/fpdf_edit.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'public') diff --git a/public/fpdf_edit.h b/public/fpdf_edit.h index 47a0e68f5a..904231f09f 100644 --- a/public/fpdf_edit.h +++ b/public/fpdf_edit.h @@ -469,6 +469,21 @@ DLLEXPORT FPDF_FONT STDCALL FPDFText_LoadFont(FPDF_DOCUMENT document, int font_type, FPDF_BOOL cid); +// Set the fill RGBA of a text object. Range of values: 0 - 255. +// +// text_object - handle to the text object. +// R - the red component for the path fill color. +// G - the green component for the path fill color. +// B - the blue component for the path fill color. +// A - the fill alpha for the path. +// +// Returns TRUE on success. +DLLEXPORT FPDF_BOOL STDCALL FPDFText_SetFillColor(FPDF_PAGEOBJECT text_object, + unsigned int R, + unsigned int G, + unsigned int B, + unsigned int A); + // Close a loaded PDF font. // // font - Handle to the loaded font. -- cgit v1.2.3