aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdf/QPDFMatrix.hh
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-01-26 22:48:41 +0100
committerJay Berkenbilt <ejb@ql.org>2019-01-27 13:50:30 +0100
commit68ccd87c9e950572e859eb5147453be2a528b944 (patch)
tree1625df9dc46a45a7837021dbc5c70ed86425e93c /libqpdf/qpdf/QPDFMatrix.hh
parent8cb245739c76a1766473174500275d5d8b215d98 (diff)
downloadqpdf-68ccd87c9e950572e859eb5147453be2a528b944.tar.zst
Move rectangle transformation into QPDFMatrix
Diffstat (limited to 'libqpdf/qpdf/QPDFMatrix.hh')
-rw-r--r--libqpdf/qpdf/QPDFMatrix.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/libqpdf/qpdf/QPDFMatrix.hh b/libqpdf/qpdf/QPDFMatrix.hh
index 81bc51f1..7b19a665 100644
--- a/libqpdf/qpdf/QPDFMatrix.hh
+++ b/libqpdf/qpdf/QPDFMatrix.hh
@@ -19,6 +19,9 @@ class QPDFMatrix
QPDF_DLL
std::string unparse() const;
+ QPDF_DLL
+ QPDFObjectHandle::Matrix getAsMatrix() const;
+
// This is not part of the public API. Just provide the methods we
// need as we need them.
QPDF_DLL
@@ -34,6 +37,10 @@ class QPDFMatrix
QPDF_DLL
void transform(double x, double y, double& xp, double& yp);
+ QPDF_DLL
+ QPDFObjectHandle::Rectangle transformRectangle(
+ QPDFObjectHandle::Rectangle r);
+
private:
double a;
double b;