devicehelper.cxx (25ea7f45) | devicehelper.cxx (45fd3b9a) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 5 unchanged lines hidden (view full) --- 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 5 unchanged lines hidden (view full) --- 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 |
22 23 | |
24// MARKER(update_precomp.py): autogen include statement, do not remove 25#include "precompiled_canvas.hxx" 26 27#include <canvas/debug.hxx> 28#include <tools/diagnose_ex.h> 29#include <canvas/canvastools.hxx> | 22// MARKER(update_precomp.py): autogen include statement, do not remove 23#include "precompiled_canvas.hxx" 24 25#include <canvas/debug.hxx> 26#include <tools/diagnose_ex.h> 27#include <canvas/canvastools.hxx> |
30 | |
31#include <rtl/instance.hxx> 32#include <toolkit/helper/vclunohelper.hxx> 33#include <vcl/canvastools.hxx> 34#include <basegfx/tools/canvastools.hxx> 35#include <basegfx/tools/unopolypolygon.hxx> | 28#include <rtl/instance.hxx> 29#include <toolkit/helper/vclunohelper.hxx> 30#include <vcl/canvastools.hxx> 31#include <basegfx/tools/canvastools.hxx> 32#include <basegfx/tools/unopolypolygon.hxx> |
33#include <vcl/dibtools.hxx> |
|
36 37#include "devicehelper.hxx" 38#include "spritecanvas.hxx" 39#include "spritecanvashelper.hxx" 40#include "canvasbitmap.hxx" 41 | 34 35#include "devicehelper.hxx" 36#include "spritecanvas.hxx" 37#include "spritecanvashelper.hxx" 38#include "canvasbitmap.hxx" 39 |
42 | |
43using namespace ::com::sun::star; 44 45namespace vclcanvas 46{ 47 DeviceHelper::DeviceHelper() : 48 mpOutDev() 49 {} 50 --- 171 unchanged lines hidden (view full) --- 222 aFilename += String::CreateFromAscii(".bmp"); 223 224 SvFileStream aStream( aFilename, STREAM_STD_READWRITE ); 225 226 const ::Point aEmptyPoint; 227 OutputDevice& rOutDev = mpOutDev->getOutDev(); 228 bool bOldMap( rOutDev.IsMapModeEnabled() ); 229 rOutDev.EnableMapMode( sal_False ); | 40using namespace ::com::sun::star; 41 42namespace vclcanvas 43{ 44 DeviceHelper::DeviceHelper() : 45 mpOutDev() 46 {} 47 --- 171 unchanged lines hidden (view full) --- 219 aFilename += String::CreateFromAscii(".bmp"); 220 221 SvFileStream aStream( aFilename, STREAM_STD_READWRITE ); 222 223 const ::Point aEmptyPoint; 224 OutputDevice& rOutDev = mpOutDev->getOutDev(); 225 bool bOldMap( rOutDev.IsMapModeEnabled() ); 226 rOutDev.EnableMapMode( sal_False ); |
230 aStream << rOutDev.GetBitmap(aEmptyPoint, 231 rOutDev.GetOutputSizePixel()); | 227 WriteDIB(rOutDev.GetBitmap(aEmptyPoint, rOutDev.GetOutputSizePixel()), aStream, false, true); |
232 rOutDev.EnableMapMode( bOldMap ); 233 234 ++nFilePostfixCount; 235 } 236 } 237 238} | 228 rOutDev.EnableMapMode( bOldMap ); 229 230 ++nFilePostfixCount; 231 } 232 } 233 234} |