diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2015-11-08 23:00:14 +0100 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2015-11-08 23:03:49 +0100 |
commit | dca73ef8cf8ddd6078d70f4bc759708f3f5d4618 (patch) | |
tree | d39badad73aa5ea3cfe2bd4c7d6417aa25c06daf /include | |
parent | 8d95cf54781e30a7adc0b11160bb17239c4a3d80 (diff) |
support to load SVG images when loading from Image resource
Change-Id: Ieda1c334d8d995c774381c52fa1d9aa11751c5ef
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/BitmapTools.hxx | 30 |
1 files changed, 30 insertions, 0 deletions
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 <vcl/bitmapex.hxx> +#include <tools/stream.hxx> + +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: */ |