diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2018-11-26 14:13:29 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-12-06 10:51:13 +0100 |
commit | 6dca7a2411c96f955c768b425bc4ac62bafacd0b (patch) | |
tree | c22d34314a80005a2e10ac2624fdd99abe2ae2b7 /include | |
parent | 244df39479a161ce6865cc3dde7629af15d5fa8f (diff) |
Add explicit API scaling via ImageTree API.
Also add image scale to in-memory cache lookup.
Change-Id: I1e84b922d4a9ab2f1723c5cb8a72f295c6940504
(cherry picked from commit 59b3cdbc27b65fb3e72dd0b3b2565851bc8f772c)
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/ImageTree.hxx | 7 |
1 files changed, 6 insertions, 1 deletions
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<css::container::XNameAccess> 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<css::container::XNameAccess> getNameAccess(); /** a crude form of life cycle control (called from DeInitVCL; otherwise, * if the ImplImageTree singleton were destroyed during exit that would |