From 3b05743bd072d936f56250514d6b18bfbbde85bf Mon Sep 17 00:00:00 2001 From: Jane Liu Date: Mon, 19 Jun 2017 10:44:01 -0400 Subject: Added public API FPDFPath_GetStrokeColor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is already public APIs for SetFillColor, GetFillColor, and SetStrokeColor; this is the only one missing. This function is helpful to have when extracting path information from annotations. Change-Id: I2bf80a1dc5433e65bbb1d005c0e609d01c9133be Reviewed-on: https://pdfium-review.googlesource.com/6710 Commit-Queue: dsinclair Reviewed-by: dsinclair 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 022832fe78..4d5826ddbc 100644 --- a/public/fpdf_edit.h +++ b/public/fpdf_edit.h @@ -345,6 +345,21 @@ DLLEXPORT FPDF_BOOL FPDFPath_SetStrokeColor(FPDF_PAGEOBJECT path, unsigned int B, unsigned int A); +// Get the stroke RGBA of a path. Range of values: 0 - 255. +// +// path - the handle to the path object. +// R - the red component of the path stroke color. +// G - the green component of the path stroke color. +// B - the blue component of the path stroke color. +// A - the stroke alpha of the path. +// +// Returns TRUE on success. +DLLEXPORT FPDF_BOOL FPDFPath_GetStrokeColor(FPDF_PAGEOBJECT path, + unsigned int* R, + unsigned int* G, + unsigned int* B, + unsigned int* A); + // Set the stroke width of a path. // // path - the handle to the path object. -- cgit v1.2.3