diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-13 14:26:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-13 15:32:42 +0100 |
commit | a93d940186f65005141eea3bebdfb4c66cebe8f8 (patch) | |
tree | 5af8b2fcffbe8f9ed35226d7fbda3719b9209903 /include | |
parent | 9d81a7ae6da283e0daa299177abd55b09d10964f (diff) |
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')
-rw-r--r-- | include/vcl/BitmapTools.hxx | 7 |
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 |