From ed4705b4db1405a5abef99ad1b2725eee65fedf8 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 5 Apr 2017 09:24:50 +0200 Subject: Add public method FPDFPath_GetFillColor to get fill color of a path object. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It was already possible to set the fill color, this is the other direction. Change-Id: Id53f3c9969ca036ec1f9383a2cdbaf224395215f Reviewed-on: https://pdfium-review.googlesource.com/3690 Commit-Queue: Nicolás Peña Reviewed-by: 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 ce02a6406d..4d06c2a0c8 100644 --- a/public/fpdf_edit.h +++ b/public/fpdf_edit.h @@ -343,6 +343,21 @@ DLLEXPORT FPDF_BOOL FPDFPath_SetFillColor(FPDF_PAGEOBJECT path, unsigned int B, unsigned int A); +// Get the fill RGBA of a path. Range of values: 0 - 255. +// +// path - the handle to the path object. +// R - the red component of the path fill color. +// G - the green component of the path fill color. +// B - the blue component of the path fill color. +// A - the fill alpha of the path. +// +// Returns TRUE on success. +DLLEXPORT FPDF_BOOL FPDFPath_GetFillColor(FPDF_PAGEOBJECT path, + unsigned int* R, + unsigned int* G, + unsigned int* B, + unsigned int* A); + // Move a path's current point. // // path - the handle to the path object. -- cgit v1.2.3