canvasbitmaphelper.cxx (25ea7f45) canvasbitmaphelper.cxx (37ab0f2d)
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

--- 112 unchanged lines hidden (view full) ---

121 RTL_LOGFILE_CONTEXT( aLog, "::vclcanvas::CanvasBitmapHelper::getScaledBitmap()" );
122
123 if( !mpBackBuffer || mpDevice )
124 return uno::Reference< rendering::XBitmap >(); // we're disposed
125
126 BitmapEx aRes( mpBackBuffer->getBitmapReference() );
127
128 aRes.Scale( ::vcl::unotools::sizeFromRealSize2D(newSize),
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

--- 112 unchanged lines hidden (view full) ---

121 RTL_LOGFILE_CONTEXT( aLog, "::vclcanvas::CanvasBitmapHelper::getScaledBitmap()" );
122
123 if( !mpBackBuffer || mpDevice )
124 return uno::Reference< rendering::XBitmap >(); // we're disposed
125
126 BitmapEx aRes( mpBackBuffer->getBitmapReference() );
127
128 aRes.Scale( ::vcl::unotools::sizeFromRealSize2D(newSize),
129 beFast ? BMP_SCALE_FAST : BMP_SCALE_INTERPOLATE );
129 beFast ? BMP_SCALE_FASTESTINTERPOLATE : BMP_SCALE_INTERPOLATE );
130
131 return uno::Reference< rendering::XBitmap >(
132 new CanvasBitmap( aRes, *mpDevice, mpOutDevReference ) );
133 }
134
135 uno::Sequence< sal_Int8 > CanvasBitmapHelper::getData( rendering::IntegerBitmapLayout& rLayout,
136 const geometry::IntegerRectangle2D& rect )
137 {

--- 426 unchanged lines hidden ---
130
131 return uno::Reference< rendering::XBitmap >(
132 new CanvasBitmap( aRes, *mpDevice, mpOutDevReference ) );
133 }
134
135 uno::Sequence< sal_Int8 > CanvasBitmapHelper::getData( rendering::IntegerBitmapLayout& rLayout,
136 const geometry::IntegerRectangle2D& rect )
137 {

--- 426 unchanged lines hidden ---