diff options
author | wileyrya <wileyrr@gmail.com> | 2017-05-26 09:26:27 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-26 16:16:52 +0000 |
commit | 22a237fb403d76d65a254c4f9cf1c1a9d0b22772 (patch) | |
tree | ae2888307c024ece316778b3cc7fedca8f4f658a /public/fpdf_edit.h | |
parent | 1bbcb35e4e5593998837c832eabf16a91a695387 (diff) | |
download | pdfium-22a237fb403d76d65a254c4f9cf1c1a9d0b22772.tar.xz |
Add public API for setting LineJoin and LineCap on a path
BUG=pdfium:718
R=npm@chromium.org
Change-Id: Icdc1546c87a676a7d05330dece2c5eacd92c0c92
Reviewed-on: https://pdfium-review.googlesource.com/5951
Reviewed-by: Nicolás Peña <npm@chromium.org>
Commit-Queue: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'public/fpdf_edit.h')
-rw-r--r-- | public/fpdf_edit.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/public/fpdf_edit.h b/public/fpdf_edit.h index a84b42ab05..47a0e68f5a 100644 --- a/public/fpdf_edit.h +++ b/public/fpdf_edit.h @@ -319,6 +319,23 @@ DLLEXPORT FPDF_BOOL FPDFPath_SetStrokeColor(FPDF_PAGEOBJECT path, // Returns TRUE on success DLLEXPORT FPDF_BOOL FPDFPath_SetStrokeWidth(FPDF_PAGEOBJECT path, float width); +// Set the line join of |pageObject|. +// +// pageObject - handle to a page object. +// line_join - line join +// +// Line join can be one of following: Miter (0), Round (1), Bevel (2) +DLLEXPORT void STDCALL FPDFPath_SetLineJoin(FPDF_PAGEOBJECT page, + int line_join); + +// Set the line cap of |pageObject|. +// +// pageObject - handle to a page object. +// line_cap - line cap +// +// Line cap can be one of following: Butt (0), Round (1), Projecting square (2) +DLLEXPORT void STDCALL FPDFPath_SetLineCap(FPDF_PAGEOBJECT page, int line_cap); + // Set the fill RGBA of a path. Range of values: 0 - 255. // // path - the handle to the path object. |