ilstbox.cxx (a68b38df) ilstbox.cxx (ff0f521c)
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

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

1851 aImgSz.Width() = CalcZoom( aImgSz.Width() );
1852 aImgSz.Height() = CalcZoom( aImgSz.Height() );
1853 DrawImage( aPtImg, aImgSz, aImage );
1854 }
1855
1856 const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
1857 const sal_uInt16 nEdgeBlendingPercent(GetEdgeBlending() ? rStyleSettings.GetEdgeBlending() : 0);
1858
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

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

1851 aImgSz.Width() = CalcZoom( aImgSz.Width() );
1852 aImgSz.Height() = CalcZoom( aImgSz.Height() );
1853 DrawImage( aPtImg, aImgSz, aImage );
1854 }
1855
1856 const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
1857 const sal_uInt16 nEdgeBlendingPercent(GetEdgeBlending() ? rStyleSettings.GetEdgeBlending() : 0);
1858
1859 if(nEdgeBlendingPercent)
1859 if(nEdgeBlendingPercent && aImgSz.Width() && aImgSz.Height())
1860 {
1860 {
1861 const Rectangle aRect(aPtImg, aImgSz);
1862 Bitmap aBitmap(GetBitmap(aRect.TopLeft(), aRect.GetSize()));
1861 const Color& rTopLeft(rStyleSettings.GetEdgeBlendingTopLeftColor());
1862 const Color& rBottomRight(rStyleSettings.GetEdgeBlendingBottomRightColor());
1863 const sal_uInt8 nAlpha((nEdgeBlendingPercent * 255) / 100);
1864 const BitmapEx aBlendFrame(createBlendFrame(aImgSz, nAlpha, rTopLeft, rBottomRight));
1863
1865
1864 if(!aBitmap.IsEmpty())
1866 if(!aBlendFrame.IsEmpty())
1865 {
1867 {
1866 const Color& rTopLeft(rStyleSettings.GetEdgeBlendingTopLeftColor());
1867 const Color& rBottomRight(rStyleSettings.GetEdgeBlendingBottomRightColor());
1868 const sal_uInt8 nAlpha((nEdgeBlendingPercent * 255) / 100);
1869
1870 aBitmap.DrawBlendFrame(nAlpha, rTopLeft, rBottomRight);
1871 DrawBitmap(aRect.TopLeft(), aBitmap);
1868 DrawBitmapEx(aPtImg, aBlendFrame);
1872 }
1873 }
1874 }
1875 }
1876
1877 if( bDrawText )
1878 {
1879 MetricVector* pVector = bLayout ? &mpControlData->mpLayoutData->m_aUnicodeBoundRects : NULL;

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

2991 aImgSz.Height() = CalcZoom( aImgSz.Height() );
2992 DrawImage( aPtImg, aImgSz, *pImage, nStyle );
2993 }
2994
2995 const sal_uInt16 nEdgeBlendingPercent(GetEdgeBlending() ? rStyleSettings.GetEdgeBlending() : 0);
2996
2997 if(nEdgeBlendingPercent)
2998 {
1869 }
1870 }
1871 }
1872 }
1873
1874 if( bDrawText )
1875 {
1876 MetricVector* pVector = bLayout ? &mpControlData->mpLayoutData->m_aUnicodeBoundRects : NULL;

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

2988 aImgSz.Height() = CalcZoom( aImgSz.Height() );
2989 DrawImage( aPtImg, aImgSz, *pImage, nStyle );
2990 }
2991
2992 const sal_uInt16 nEdgeBlendingPercent(GetEdgeBlending() ? rStyleSettings.GetEdgeBlending() : 0);
2993
2994 if(nEdgeBlendingPercent)
2995 {
2999 const Rectangle aRect(aPtImg, aImgSz);
3000 Bitmap aBitmap(GetBitmap(aRect.TopLeft(), aRect.GetSize()));
2996 const Color& rTopLeft(rStyleSettings.GetEdgeBlendingTopLeftColor());
2997 const Color& rBottomRight(rStyleSettings.GetEdgeBlendingBottomRightColor());
2998 const sal_uInt8 nAlpha((nEdgeBlendingPercent * 255) / 100);
2999 const BitmapEx aBlendFrame(createBlendFrame(aImgSz, nAlpha, rTopLeft, rBottomRight));
3001
3000
3002 if(!aBitmap.IsEmpty())
3001 if(!aBlendFrame.IsEmpty())
3003 {
3002 {
3004 const Color& rTopLeft(rStyleSettings.GetEdgeBlendingTopLeftColor());
3005 const Color& rBottomRight(rStyleSettings.GetEdgeBlendingBottomRightColor());
3006 const sal_uInt8 nAlpha((nEdgeBlendingPercent * 255) / 100);
3007
3008 aBitmap.DrawBlendFrame(nAlpha, rTopLeft, rBottomRight);
3009 DrawBitmap(aRect.TopLeft(), aBitmap);
3003 DrawBitmapEx(aPtImg, aBlendFrame);
3010 }
3011 }
3012 }
3013
3014 if( bDrawText && maString.Len() )
3015 {
3016 sal_uInt16 nTextStyle = TEXT_DRAW_VCENTER;
3017

--- 296 unchanged lines hidden ---
3004 }
3005 }
3006 }
3007
3008 if( bDrawText && maString.Len() )
3009 {
3010 sal_uInt16 nTextStyle = TEXT_DRAW_VCENTER;
3011

--- 296 unchanged lines hidden ---