summaryrefslogtreecommitdiff
path: root/vcl/source/pdf
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-24 11:32:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-08-25 09:51:12 +0200
commit38a29acd7e305ec99c4eb1871b9f31f75a3ab80c (patch)
treec81a5ae2ba8c70b836e468244e9456f732ba1ab1 /vcl/source/pdf
parent241ce1488b8354f6c203d4feaef8a9fed9a3f52c (diff)
use DevicePoint and SubPixelToLogic to return to source coord system
Change-Id: I1aeae6270feb6cb0a44b7850e1b3143e68ae780f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138770 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/pdf')
-rw-r--r--vcl/source/pdf/Matrix3.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/pdf/Matrix3.cxx b/vcl/source/pdf/Matrix3.cxx
index 475f87d966df..7b225c3a68b4 100644
--- a/vcl/source/pdf/Matrix3.cxx
+++ b/vcl/source/pdf/Matrix3.cxx
@@ -30,6 +30,12 @@ Point Matrix3::transform(const Point& rOrig) const
return Point(x * f[0] + y * f[2] + f[4], x * f[1] + y * f[3] + f[5]);
}
+DevicePoint Matrix3::transform(const DevicePoint& rOrig) const
+{
+ double x = rOrig.getX(), y = rOrig.getY();
+ return DevicePoint(x * f[0] + y * f[2] + f[4], x * f[1] + y * f[3] + f[5]);
+}
+
void Matrix3::skew(double alpha, double beta)
{
double fn[6];