From 36eed87d19e741be9909500c45dd12e50ff6a1ab Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 20 Sep 2017 22:52:43 +0200 Subject: Add FPDFPath_GetPoint() API Combined with the previously added FPDFPath_CountPoint(), this allows getting the coordinates of all points of a path. Change-Id: Ic969723d4b01ee427498d38ce323c74147b87a9c Reviewed-on: https://pdfium-review.googlesource.com/14111 Commit-Queue: dsinclair Reviewed-by: dsinclair --- fpdfsdk/fpdfview.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'fpdfsdk/fpdfview.cpp') diff --git a/fpdfsdk/fpdfview.cpp b/fpdfsdk/fpdfview.cpp index 9e9c31ddc9..c52c598783 100644 --- a/fpdfsdk/fpdfview.cpp +++ b/fpdfsdk/fpdfview.cpp @@ -357,6 +357,10 @@ CFX_DIBitmap* CFXBitmapFromFPDFBitmap(FPDF_BITMAP bitmap) { return static_cast(bitmap); } +const FX_PATHPOINT* FXPathPointFromFPDFPathSegment(FPDF_PATHSEGMENT segment) { + return static_cast(segment); +} + unsigned long Utf16EncodeMaybeCopyAndReturnLength(const WideString& text, void* buffer, unsigned long buflen) { -- cgit v1.2.3