summaryrefslogtreecommitdiff
path: root/vcl/inc/image.h
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2018-11-26 14:00:08 +0000
committerMichael Meeks <michael.meeks@collabora.com>2018-11-27 21:33:35 +0100
commitda3432a0a8ab06c5bbd79a82703bf07e79c692f9 (patch)
treee1076ed8ba981708ae2dde3542529f4cdadc4c93 /vcl/inc/image.h
parent0f25a3c36f27fd51453b9a9115f236b83c143684 (diff)
Use HiDPI scaling to load scaled images.
We render these at apparently the same pixel size as normal images, but the underlying canvas is larger so these then end up pixel-matching the true underlying grid. Change-Id: Ic4b749127e9c81da78d06b34d9f88c5635dc64b9 Reviewed-on: https://gerrit.libreoffice.org/64044 Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vcl/inc/image.h')
-rw-r--r--vcl/inc/image.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/inc/image.h b/vcl/inc/image.h
index f966a8c62c1f..c9fb5393191a 100644
--- a/vcl/inc/image.h
+++ b/vcl/inc/image.h
@@ -44,9 +44,13 @@ struct ImplImage
/// get size in co-ordinates not scaled for HiDPI
Size getSizePixel();
+ /// Legacy - the original bitmap
BitmapEx getBitmapEx(bool bDisabled = false);
+ /// Taking account of HiDPI scaling
+ BitmapEx getBitmapExForHiDPI(bool bDisabled = false);
bool isEqual(const ImplImage &ref) const;
bool isSizeEmpty() const { return maSizePixel == Size(0, 0); }
+ bool loadStockAtScale(double fScale, BitmapEx &rBitmapEx);
};
#endif // INCLUDED_VCL_INC_IMAGE_H