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 /svx | |
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 'svx')
-rw-r--r-- | svx/source/xoutdev/xattrbmp.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/xoutdev/xattrbmp.cxx b/svx/source/xoutdev/xattrbmp.cxx index fad22b1c546d..6bb58e9707bb 100644 --- a/svx/source/xoutdev/xattrbmp.cxx +++ b/svx/source/xoutdev/xattrbmp.cxx @@ -44,7 +44,7 @@ using namespace ::com::sun::star; -XOBitmap::XOBitmap( const Bitmap& rBmp ) : +XOBitmap::XOBitmap( const BitmapEx& rBmp ) : xGraphicObject (new GraphicObject(rBmp)), bGraphicDirty ( false ) { @@ -54,9 +54,9 @@ XOBitmap::~XOBitmap() { } -Bitmap XOBitmap::GetBitmap() const +BitmapEx XOBitmap::GetBitmap() const { - return GetGraphicObject().GetGraphic().GetBitmap(); + return GetGraphicObject().GetGraphic().GetBitmapEx(); } const GraphicObject& XOBitmap::GetGraphicObject() const @@ -71,14 +71,14 @@ void XOBitmap::Bitmap2Array() { ScopedVclPtrInstance< VirtualDevice > pVDev; bool bPixelColor = false; - const Bitmap aBitmap( GetBitmap() ); + const BitmapEx aBitmap( GetBitmap() ); const sal_Int32 nLines = 8; // type dependent if( !pPixelArray ) pPixelArray.reset( new sal_uInt16[ nLines * nLines ] ); pVDev->SetOutputSizePixel( aBitmap.GetSizePixel() ); - pVDev->DrawBitmap( Point(), aBitmap ); + pVDev->DrawBitmapEx( Point(), aBitmap ); aPixelColor = aBckgrColor = pVDev->GetPixel( Point() ); // create array and determine foreground and background color |