diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-14 11:20:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-14 14:37:40 +0100 |
commit | b90e098a354323b635bab3ee8f9c79deb1e734fe (patch) | |
tree | 7d5636a991b8553995e57e0e616e4c0dbea72b4b /lotuswordpro | |
parent | 95fab7cbf2f0576d0f728bed8898b7ff769d90e6 (diff) |
use BitmapEx in LwpBackgroundStuff
part of making Bitmap an implementation detail of vcl/
Change-Id: I847a2371cd630637b11aed0fad7263809143c706
Reviewed-on: https://gerrit.libreoffice.org/49705
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpbackgroundstuff.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lotuswordpro/source/filter/lwpbackgroundstuff.cxx b/lotuswordpro/source/filter/lwpbackgroundstuff.cxx index 90a77cb8eb19..7ee17a64fdd8 100644 --- a/lotuswordpro/source/filter/lwpbackgroundstuff.cxx +++ b/lotuswordpro/source/filter/lwpbackgroundstuff.cxx @@ -65,7 +65,7 @@ #include <tools/stream.hxx> #include <vcl/dibtools.hxx> -#include <vcl/bitmapaccess.hxx> +#include <vcl/BitmapTools.hxx> #include <svx/xbitmap.hxx> void LwpBackgroundStuff::Read(LwpObjectStream* pStrm) @@ -114,11 +114,7 @@ XFBGImage* LwpBackgroundStuff::GetFillPattern() GetPattern(m_nID, aPttnArray); // create bitmap object from the pattern array - Bitmap aBmp( Size(8, 8), 1 ); - BitmapWriteAccess* pWA = aBmp.AcquireWriteAccess(); - sal_uInt8* pBuf = pWA->GetBuffer(); - memcpy(pBuf, aPttnArray, 32); - Bitmap::ReleaseAccess(pWA); + BitmapEx aBmp = vcl::bitmap::CreateFromData( aPttnArray, 8, 8, 8, 1 ); // create XOBitmap object from bitmap object XOBitmap aXOBitmap( aBmp ); |