From dca73ef8cf8ddd6078d70f4bc759708f3f5d4618 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Sun, 8 Nov 2015 23:00:14 +0100 Subject: support to load SVG images when loading from Image resource Change-Id: Ieda1c334d8d995c774381c52fa1d9aa11751c5ef --- include/vcl/BitmapTools.hxx | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 include/vcl/BitmapTools.hxx (limited to 'include') diff --git a/include/vcl/BitmapTools.hxx b/include/vcl/BitmapTools.hxx new file mode 100644 index 000000000000..b15642408856 --- /dev/null +++ b/include/vcl/BitmapTools.hxx @@ -0,0 +1,30 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_VCL_BITMAP_TOOLS_HXX +#define INCLUDED_VCL_BITMAP_TOOLS_HXX + +#include +#include + +namespace vcl +{ + +class VCL_DLLPUBLIC BitmapTools +{ +public: + static void loadFromSvg(SvStream& rStream, const OUString& sPath, BitmapEx& rBitmapEx, + double fScaleFactor = 1.0, const Size& aSize = Size()); +}; + +} + +#endif // INCLUDED_VCL_BITMAP_TOOLS_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit