summaryrefslogtreecommitdiffstats
path: root/include/vcl/BitmapTools.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-13 14:26:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-13 15:32:42 +0100
commita93d940186f65005141eea3bebdfb4c66cebe8f8 (patch)
tree5af8b2fcffbe8f9ed35226d7fbda3719b9209903 /include/vcl/BitmapTools.hxx
parentrename some mpOutdev fields to mpOutdevProvider (diff)
downloadcore-a93d940186f65005141eea3bebdfb4c66cebe8f8.tar.gz
core-a93d940186f65005141eea3bebdfb4c66cebe8f8.zip
make transformBitmap code from canvas to vcl
part of making ScopedWriteAccess an internal detail of vcl Change-Id: Ida03bc73fe746cde97f6fcb5cde2f066b63d92e9 Reviewed-on: https://gerrit.libreoffice.org/51216 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'include/vcl/BitmapTools.hxx')
-rw-r--r--include/vcl/BitmapTools.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/vcl/BitmapTools.hxx b/include/vcl/BitmapTools.hxx
index e68e203825e2..1263157b932c 100644
--- a/include/vcl/BitmapTools.hxx
+++ b/include/vcl/BitmapTools.hxx
@@ -20,6 +20,8 @@
#endif
#include <com/sun/star/geometry/IntegerPoint2D.hpp>
#include <com/sun/star/geometry/IntegerRectangle2D.hpp>
+#include <basegfx/range/b2drectangle.hxx>
+#include <basegfx/matrix/b2dhommatrix.hxx>
namespace vcl {
namespace bitmap {
@@ -92,6 +94,11 @@ VCL_DLLPUBLIC BitmapEx CanvasBitmapHelperSetData( const css::uno::Sequence< sal_
const css::geometry::IntegerRectangle2D& rect,
BitmapEx & rBitmapEx);
+VCL_DLLPUBLIC BitmapEx CanvasTransformBitmap( const BitmapEx& rBitmap,
+ const ::basegfx::B2DHomMatrix& rTransform,
+ ::basegfx::B2DRectangle const & rDestRect,
+ ::basegfx::B2DHomMatrix const & rLocalTransform );
+
}} // end vcl::bitmap
#endif // INCLUDED_VCL_BITMAP_TOOLS_HXX