canvashelper.cxx (e6f63103) | canvashelper.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 --- 928 unchanged lines hidden (view full) --- 937 938 // TODO(F2): Support alpha vdev canvas here 939 const Point aEmptyPoint(0,0); 940 const Size aBmpSize( rOutDev.GetOutputSizePixel() ); 941 942 Bitmap aBitmap( rOutDev.GetBitmap(aEmptyPoint, aBmpSize) ); 943 944 aBitmap.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 --- 928 unchanged lines hidden (view full) --- 937 938 // TODO(F2): Support alpha vdev canvas here 939 const Point aEmptyPoint(0,0); 940 const Size aBmpSize( rOutDev.GetOutputSizePixel() ); 941 942 Bitmap aBitmap( rOutDev.GetBitmap(aEmptyPoint, aBmpSize) ); 943 944 aBitmap.Scale( ::vcl::unotools::sizeFromRealSize2D(newSize), |
945 beFast ? BMP_SCALE_FAST : BMP_SCALE_INTERPOLATE ); | 945 beFast ? BMP_SCALE_FASTESTINTERPOLATE : BMP_SCALE_INTERPOLATE ); |
946 947 return uno::Reference< rendering::XBitmap >( 948 new CanvasBitmap( aBitmap, *mpDevice, mpOutDev ) ); 949 } 950 951 uno::Sequence< sal_Int8 > CanvasHelper::getData( rendering::IntegerBitmapLayout& rLayout, 952 const geometry::IntegerRectangle2D& rect ) 953 { --- 495 unchanged lines hidden --- | 946 947 return uno::Reference< rendering::XBitmap >( 948 new CanvasBitmap( aBitmap, *mpDevice, mpOutDev ) ); 949 } 950 951 uno::Sequence< sal_Int8 > CanvasHelper::getData( rendering::IntegerBitmapLayout& rLayout, 952 const geometry::IntegerRectangle2D& rect ) 953 { --- 495 unchanged lines hidden --- |