canvasbitmap.cxx (87bc88d3) | canvasbitmap.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 --- 443 unchanged lines hidden (view full) --- 452} 453 454uno::Reference< rendering::XBitmap > SAL_CALL VclCanvasBitmap::getScaledBitmap( const geometry::RealSize2D& newSize, 455 sal_Bool beFast ) throw (uno::RuntimeException) 456{ 457 vos::OGuard aGuard( Application::GetSolarMutex() ); 458 459 BitmapEx aNewBmp( m_aBitmap ); | 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 --- 443 unchanged lines hidden (view full) --- 452} 453 454uno::Reference< rendering::XBitmap > SAL_CALL VclCanvasBitmap::getScaledBitmap( const geometry::RealSize2D& newSize, 455 sal_Bool beFast ) throw (uno::RuntimeException) 456{ 457 vos::OGuard aGuard( Application::GetSolarMutex() ); 458 459 BitmapEx aNewBmp( m_aBitmap ); |
460 aNewBmp.Scale( sizeFromRealSize2D( newSize ), beFast ? BMP_SCALE_FAST : BMP_SCALE_INTERPOLATE ); | 460 aNewBmp.Scale( sizeFromRealSize2D( newSize ), beFast ? BMP_SCALE_FASTESTINTERPOLATE : BMP_SCALE_INTERPOLATE ); |
461 return uno::Reference<rendering::XBitmap>( new VclCanvasBitmap( aNewBmp ) ); 462} 463 464// XIntegerReadOnlyBitmap 465uno::Sequence< sal_Int8 > SAL_CALL VclCanvasBitmap::getData( rendering::IntegerBitmapLayout& bitmapLayout, 466 const geometry::IntegerRectangle2D& rect ) throw( lang::IndexOutOfBoundsException, 467 rendering::VolatileContentDestroyedException, 468 uno::RuntimeException) --- 986 unchanged lines hidden --- | 461 return uno::Reference<rendering::XBitmap>( new VclCanvasBitmap( aNewBmp ) ); 462} 463 464// XIntegerReadOnlyBitmap 465uno::Sequence< sal_Int8 > SAL_CALL VclCanvasBitmap::getData( rendering::IntegerBitmapLayout& bitmapLayout, 466 const geometry::IntegerRectangle2D& rect ) throw( lang::IndexOutOfBoundsException, 467 rendering::VolatileContentDestroyedException, 468 uno::RuntimeException) --- 986 unchanged lines hidden --- |