diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-12-02 09:08:49 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-12-02 10:14:27 +0100 |
commit | d8fe51f9a4d1669578c162d87a6e65125096d720 (patch) | |
tree | 108dba7e03750313851dcbb771ec94178b7d35c5 /include/vcl | |
parent | ea9863c0104bfa74e7542f850768c2c0ee63a577 (diff) |
pdfium: add width/height/format wrappers for bitmap
Change-Id: Ic8c85c4224b89d1e7bb8ded1a11c5fd8139f5701
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107044
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/filter/PDFiumLibrary.hxx | 4 | ||||
-rw-r--r-- | include/vcl/pdf/PDFBitmapType.hxx | 26 |
2 files changed, 30 insertions, 0 deletions
diff --git a/include/vcl/filter/PDFiumLibrary.hxx b/include/vcl/filter/PDFiumLibrary.hxx index 497ef3e2d47e..6e952d4fc17b 100644 --- a/include/vcl/filter/PDFiumLibrary.hxx +++ b/include/vcl/filter/PDFiumLibrary.hxx @@ -32,6 +32,7 @@ #include <vcl/pdf/PDFAnnotationSubType.hxx> #include <vcl/pdf/PDFPageObjectType.hxx> #include <vcl/pdf/PDFSegmentType.hxx> +#include <vcl/pdf/PDFBitmapType.hxx> #include <fpdf_doc.h> @@ -85,6 +86,9 @@ public: void renderPageBitmap(PDFiumPage* pPage, int nStartX, int nStartY, int nSizeX, int nSizeY); ConstScanline getBuffer(); int getStride(); + int getWidth(); + int getHeight(); + PDFBitmapType getFormat(); }; class VCL_DLLPUBLIC PDFiumAnnotation final diff --git a/include/vcl/pdf/PDFBitmapType.hxx b/include/vcl/pdf/PDFBitmapType.hxx new file mode 100644 index 000000000000..fe5921276e87 --- /dev/null +++ b/include/vcl/pdf/PDFBitmapType.hxx @@ -0,0 +1,26 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + */ + +#pragma once + +namespace vcl::pdf +{ +enum class PDFBitmapType +{ + Unknown = 0, + Gray = 1, + BGR = 2, + BGRx = 3, + BGRA = 4, +}; + +} // namespace vcl::pdf + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |