From 6dca7a2411c96f955c768b425bc4ac62bafacd0b Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Mon, 26 Nov 2018 14:13:29 +0000 Subject: Add explicit API scaling via ImageTree API. Also add image scale to in-memory cache lookup. Change-Id: I1e84b922d4a9ab2f1723c5cb8a72f295c6940504 (cherry picked from commit 59b3cdbc27b65fb3e72dd0b3b2565851bc8f772c) --- include/vcl/ImageTree.hxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/vcl/ImageTree.hxx b/include/vcl/ImageTree.hxx index 5de137128d58..6d5946159022 100644 --- a/include/vcl/ImageTree.hxx +++ b/include/vcl/ImageTree.hxx @@ -60,8 +60,13 @@ public: BitmapEx & bitmap, bool localized, const ImageLoadFlags eFlags = ImageLoadFlags::NONE); - VCL_DLLPUBLIC css::uno::Reference getNameAccess(); + VCL_DLLPUBLIC bool loadImage( + OUString const & name, OUString const & style, + BitmapEx & bitmap, bool localized, + sal_Int32 nScalePercentage, + const ImageLoadFlags eFlags = ImageLoadFlags::NONE); + VCL_DLLPUBLIC css::uno::Reference getNameAccess(); /** a crude form of life cycle control (called from DeInitVCL; otherwise, * if the ImplImageTree singleton were destroyed during exit that would -- cgit v1.2.3