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

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

325 maVirDev.DrawImage( aPos, pItem->maImage, nImageStyle );
326 }
327 }
328
329 const sal_uInt16 nEdgeBlendingPercent(GetEdgeBlending() ? rStyleSettings.GetEdgeBlending() : 0);
330
331 if(nEdgeBlendingPercent)
332 {
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

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

325 maVirDev.DrawImage( aPos, pItem->maImage, nImageStyle );
326 }
327 }
328
329 const sal_uInt16 nEdgeBlendingPercent(GetEdgeBlending() ? rStyleSettings.GetEdgeBlending() : 0);
330
331 if(nEdgeBlendingPercent)
332 {
333 Bitmap aBitmap(maVirDev.GetBitmap(aRect.TopLeft(), aRect.GetSize()));
333 const Color& rTopLeft(rStyleSettings.GetEdgeBlendingTopLeftColor());
334 const Color& rBottomRight(rStyleSettings.GetEdgeBlendingBottomRightColor());
335 const sal_uInt8 nAlpha((nEdgeBlendingPercent * 255) / 100);
336 const BitmapEx aBlendFrame(createBlendFrame(aRect.GetSize(), nAlpha, rTopLeft, rBottomRight));
334
337
335 if(!aBitmap.IsEmpty())
338 if(!aBlendFrame.IsEmpty())
336 {
339 {
337 const Color& rTopLeft(rStyleSettings.GetEdgeBlendingTopLeftColor());
338 const Color& rBottomRight(rStyleSettings.GetEdgeBlendingBottomRightColor());
339 const sal_uInt8 nAlpha((nEdgeBlendingPercent * 255) / 100);
340
341 aBitmap.DrawBlendFrame(nAlpha, rTopLeft, rBottomRight);
342 maVirDev.DrawBitmap(aRect.TopLeft(), aBitmap);
340 maVirDev.DrawBitmapEx(aRect.TopLeft(), aBlendFrame);
343 }
344 }
345 }
346}
347
348// -----------------------------------------------------------------------
349
350::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > ValueSet::CreateAccessible()

--- 2436 unchanged lines hidden ---
341 }
342 }
343 }
344}
345
346// -----------------------------------------------------------------------
347
348::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > ValueSet::CreateAccessible()

--- 2436 unchanged lines hidden ---