summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-01-13 21:30:24 +0100
committerMiklos Vajna <vmiklos@collabora.com>2021-01-14 09:10:34 +0100
commit06322b0922972fec4b9e5f57e8dbab18ca9bd676 (patch)
treecb479b66d62d7ed5e0f13d52a44a71f76b3e16ae /vcl/source
parentde80c787dba8436ec403126dbec88a6d202a1ad4 (diff)
pdfium: add an FPDFPageObj_GetStrokeWidth() wrapper
Change-Id: If411b788b3ea07c29377e01052ee6a48893ca482 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109250 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/pdf/PDFiumLibrary.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/pdf/PDFiumLibrary.cxx b/vcl/source/pdf/PDFiumLibrary.cxx
index 3165f669f41d..755c19684183 100644
--- a/vcl/source/pdf/PDFiumLibrary.cxx
+++ b/vcl/source/pdf/PDFiumLibrary.cxx
@@ -666,6 +666,13 @@ Color PDFiumPageObject::getStrokeColor()
return aColor;
}
+double PDFiumPageObject::getStrokeWidth()
+{
+ float fWidth = 1;
+ FPDFPageObj_GetStrokeWidth(mpPageObject, &fWidth);
+ return fWidth;
+}
+
int PDFiumPageObject::getPathSegmentCount() { return FPDFPath_CountSegments(mpPageObject); }
std::unique_ptr<PDFiumPathSegment> PDFiumPageObject::getPathSegment(int index)