diff options
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/cairo/cairo_devicehelper.cxx | 6 | ||||
-rw-r--r-- | canvas/source/vcl/devicehelper.cxx | 7 | ||||
-rw-r--r-- | canvas/source/vcl/spritedevicehelper.cxx | 7 |
3 files changed, 8 insertions, 12 deletions
diff --git a/canvas/source/cairo/cairo_devicehelper.cxx b/canvas/source/cairo/cairo_devicehelper.cxx index e8fe710b40a4..bbe35851185b 100644 --- a/canvas/source/cairo/cairo_devicehelper.cxx +++ b/canvas/source/cairo/cairo_devicehelper.cxx @@ -32,6 +32,7 @@ #include <basegfx/tools/unopolypolygon.hxx> #include <vcl/canvastools.hxx> +#include <vcl/dibtools.hxx> #include <tools/stream.hxx> @@ -261,8 +262,9 @@ namespace cairocanvas const ::Point aEmptyPoint; bool bOldMap( mpRefDevice->IsMapModeEnabled() ); mpRefDevice->EnableMapMode( sal_False ); - aStream << mpRefDevice->GetBitmap(aEmptyPoint, - mpRefDevice->GetOutputSizePixel()); + WriteDIB(mpRefDevice->GetBitmap(aEmptyPoint, + mpRefDevice->GetOutputSizePixel()), aStream, false, true); + mpRefDevice->EnableMapMode( bOldMap ); ++nFilePostfixCount; diff --git a/canvas/source/vcl/devicehelper.cxx b/canvas/source/vcl/devicehelper.cxx index 053326feb466..dc568749ee75 100644 --- a/canvas/source/vcl/devicehelper.cxx +++ b/canvas/source/vcl/devicehelper.cxx @@ -17,23 +17,21 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #include <canvas/debug.hxx> #include <tools/diagnose_ex.h> #include <canvas/canvastools.hxx> - #include <rtl/instance.hxx> #include <toolkit/helper/vclunohelper.hxx> #include <vcl/canvastools.hxx> #include <basegfx/tools/canvastools.hxx> #include <basegfx/tools/unopolypolygon.hxx> +#include <vcl/dibtools.hxx> #include "devicehelper.hxx" #include "spritecanvas.hxx" #include "spritecanvashelper.hxx" #include "canvasbitmap.hxx" - using namespace ::com::sun::star; namespace vclcanvas @@ -223,8 +221,7 @@ namespace vclcanvas OutputDevice& rOutDev = mpOutDev->getOutDev(); bool bOldMap( rOutDev.IsMapModeEnabled() ); rOutDev.EnableMapMode( sal_False ); - aStream << rOutDev.GetBitmap(aEmptyPoint, - rOutDev.GetOutputSizePixel()); + WriteDIB(rOutDev.GetBitmap(aEmptyPoint, rOutDev.GetOutputSizePixel()), aStream, false, true); rOutDev.EnableMapMode( bOldMap ); ++nFilePostfixCount; diff --git a/canvas/source/vcl/spritedevicehelper.cxx b/canvas/source/vcl/spritedevicehelper.cxx index beaf3545f82a..5f89521c35cb 100644 --- a/canvas/source/vcl/spritedevicehelper.cxx +++ b/canvas/source/vcl/spritedevicehelper.cxx @@ -17,20 +17,18 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #include <canvas/debug.hxx> #include <canvas/canvastools.hxx> - #include <toolkit/helper/vclunohelper.hxx> #include <vcl/canvastools.hxx> #include <basegfx/tools/canvastools.hxx> +#include <vcl/dibtools.hxx> #include "spritedevicehelper.hxx" #include "spritecanvas.hxx" #include "spritecanvashelper.hxx" #include "canvasbitmap.hxx" - using namespace ::com::sun::star; namespace vclcanvas @@ -138,8 +136,7 @@ namespace vclcanvas const ::Point aEmptyPoint; mpBackBuffer->getOutDev().EnableMapMode( sal_False ); - aStream << mpBackBuffer->getOutDev().GetBitmap(aEmptyPoint, - mpBackBuffer->getOutDev().GetOutputSizePixel()); + WriteDIB(mpBackBuffer->getOutDev().GetBitmap(aEmptyPoint, mpBackBuffer->getOutDev().GetOutputSizePixel()), aStream, false, true); } ++nFilePostfixCount; |