summaryrefslogtreecommitdiffstats
path: root/include/vcl/BitmapTools.hxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2016-10-27 18:18:23 +0200
committerTomaž Vajngerl <quikee@gmail.com>2016-10-29 18:15:04 +0000
commit4a4fd38c876768f28f9c1f0a99faf385515576bc (patch)
tree5279972495777e778c4b64b7001f8440ec010a08 /include/vcl/BitmapTools.hxx
parentHiDPI: remove unneeded image scaling when HiDPI is enabled (diff)
downloadcore-4a4fd38c876768f28f9c1f0a99faf385515576bc.tar.gz
core-4a4fd38c876768f28f9c1f0a99faf385515576bc.zip
vcl: add bitmap::loadFromResource with additional flags
Sometimes we want to surpress automatic scaling and converting for dark theme. This adds a loadFromResource function with additional flags which makes this possible. Change-Id: I893cee82ad6942644755f0c5b772fb5f073bbf00 Reviewed-on: https://gerrit.libreoffice.org/30341 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/vcl/BitmapTools.hxx')
-rw-r--r--include/vcl/BitmapTools.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/vcl/BitmapTools.hxx b/include/vcl/BitmapTools.hxx
index c67bbb81f4f3..8be16886fd96 100644
--- a/include/vcl/BitmapTools.hxx
+++ b/include/vcl/BitmapTools.hxx
@@ -13,12 +13,16 @@
#include <vcl/bitmapex.hxx>
#include <tools/stream.hxx>
+#include <vcl/implimagetree.hxx>
+
namespace vcl
{
namespace bitmap
{
+BitmapEx VCL_DLLPUBLIC loadFromResource(const ResId& rResId, const ImageLoadFlags eFlags = ImageLoadFlags::NONE);
+
void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, double fScaleFactor = 1.0);
}