bitmapbackbuffer.cxx (25ea7f45) | bitmapbackbuffer.cxx (5f27b83c) |
---|---|
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 --- 71 unchanged lines hidden (view full) --- 80 { 81 OSL_ENSURE( !mbBitmapContentIsCurrent || !mbVDevContentIsCurrent, 82 "BitmapBackBuffer::getBitmapReference(): Both bitmap and VDev are valid?!" ); 83 84 if( mbVDevContentIsCurrent && mpVDev ) 85 { 86 // VDev content is more current than bitmap - copy contents before! 87 mpVDev->EnableMapMode( sal_False ); | 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 --- 71 unchanged lines hidden (view full) --- 80 { 81 OSL_ENSURE( !mbBitmapContentIsCurrent || !mbVDevContentIsCurrent, 82 "BitmapBackBuffer::getBitmapReference(): Both bitmap and VDev are valid?!" ); 83 84 if( mbVDevContentIsCurrent && mpVDev ) 85 { 86 // VDev content is more current than bitmap - copy contents before! 87 mpVDev->EnableMapMode( sal_False ); |
88 mpVDev->SetAntialiasing( ANTIALIASING_ENABLE_B2DDRAW ); |
|
88 const Point aEmptyPoint; 89 *maBitmap = mpVDev->GetBitmapEx( aEmptyPoint, 90 mpVDev->GetOutputSizePixel() ); 91 } 92 93 // client queries bitmap, and will possibly alter content - 94 // next time, VDev needs to be updated 95 mbBitmapContentIsCurrent = true; --- 4 unchanged lines hidden (view full) --- 100 101 Size BitmapBackBuffer::getBitmapSizePixel() const 102 { 103 Size aSize = maBitmap->GetSizePixel(); 104 105 if( mbVDevContentIsCurrent && mpVDev ) 106 { 107 mpVDev->EnableMapMode( sal_False ); | 89 const Point aEmptyPoint; 90 *maBitmap = mpVDev->GetBitmapEx( aEmptyPoint, 91 mpVDev->GetOutputSizePixel() ); 92 } 93 94 // client queries bitmap, and will possibly alter content - 95 // next time, VDev needs to be updated 96 mbBitmapContentIsCurrent = true; --- 4 unchanged lines hidden (view full) --- 101 102 Size BitmapBackBuffer::getBitmapSizePixel() const 103 { 104 Size aSize = maBitmap->GetSizePixel(); 105 106 if( mbVDevContentIsCurrent && mpVDev ) 107 { 108 mpVDev->EnableMapMode( sal_False ); |
109 mpVDev->SetAntialiasing( ANTIALIASING_ENABLE_B2DDRAW ); |
|
108 aSize = mpVDev->GetOutputSizePixel(); 109 } 110 111 return aSize; 112 } 113 114 void BitmapBackBuffer::createVDev() const 115 { --- 27 unchanged lines hidden (view full) --- 143 { 144 OSL_ENSURE( !mbBitmapContentIsCurrent || !mbVDevContentIsCurrent, 145 "BitmapBackBuffer::updateVDev(): Both bitmap and VDev are valid?!" ); 146 147 if( mpVDev && mbBitmapContentIsCurrent ) 148 { 149 // fill with bitmap content 150 mpVDev->EnableMapMode( sal_False ); | 110 aSize = mpVDev->GetOutputSizePixel(); 111 } 112 113 return aSize; 114 } 115 116 void BitmapBackBuffer::createVDev() const 117 { --- 27 unchanged lines hidden (view full) --- 145 { 146 OSL_ENSURE( !mbBitmapContentIsCurrent || !mbVDevContentIsCurrent, 147 "BitmapBackBuffer::updateVDev(): Both bitmap and VDev are valid?!" ); 148 149 if( mpVDev && mbBitmapContentIsCurrent ) 150 { 151 // fill with bitmap content 152 mpVDev->EnableMapMode( sal_False ); |
153 mpVDev->SetAntialiasing( ANTIALIASING_ENABLE_B2DDRAW ); |
|
151 const Point aEmptyPoint; 152 mpVDev->DrawBitmapEx( aEmptyPoint, *maBitmap ); 153 } 154 155 // canvas queried the VDev, and will possibly paint into 156 // it. Next time, bitmap must be updated 157 mbBitmapContentIsCurrent = false; 158 mbVDevContentIsCurrent = true; 159 } 160} 161 | 154 const Point aEmptyPoint; 155 mpVDev->DrawBitmapEx( aEmptyPoint, *maBitmap ); 156 } 157 158 // canvas queried the VDev, and will possibly paint into 159 // it. Next time, bitmap must be updated 160 mbBitmapContentIsCurrent = false; 161 mbVDevContentIsCurrent = true; 162 } 163} 164 |