UnoGraphicExporter.cxx (1c86731a) UnoGraphicExporter.cxx (2376739d)
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

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

847 if ( aGraphic.GetType() == GRAPHIC_BITMAP )
848 {
849 Size aSizePixel( aGraphic.GetSizePixel() );
850 if( rSettings.mnWidth && rSettings.mnHeight &&
851 ( ( rSettings.mnWidth != aSizePixel.Width() ) ||
852 ( rSettings.mnHeight != aSizePixel.Height() ) ) )
853 {
854 BitmapEx aBmpEx( aGraphic.GetBitmapEx() );
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

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

847 if ( aGraphic.GetType() == GRAPHIC_BITMAP )
848 {
849 Size aSizePixel( aGraphic.GetSizePixel() );
850 if( rSettings.mnWidth && rSettings.mnHeight &&
851 ( ( rSettings.mnWidth != aSizePixel.Width() ) ||
852 ( rSettings.mnHeight != aSizePixel.Height() ) ) )
853 {
854 BitmapEx aBmpEx( aGraphic.GetBitmapEx() );
855 aBmpEx.Scale( Size( rSettings.mnWidth, rSettings.mnHeight ) );
855 // export: use highest quality
856 aBmpEx.Scale( Size( rSettings.mnWidth, rSettings.mnHeight ), BMP_SCALE_LANCZOS );
856 aGraphic = aBmpEx;
857 }
858
859 // #118804# only accept for bitmap graphics, else the
860 // conversion to bitmap will happen anywhere without size control
861 // as evtl. defined in rSettings.mnWidth/mnHeight
862 bSingleGraphic = sal_True;
863 }

--- 432 unchanged lines hidden ---
857 aGraphic = aBmpEx;
858 }
859
860 // #118804# only accept for bitmap graphics, else the
861 // conversion to bitmap will happen anywhere without size control
862 // as evtl. defined in rSettings.mnWidth/mnHeight
863 bSingleGraphic = sal_True;
864 }

--- 432 unchanged lines hidden ---