|
LibreOffice Module vcl (master) 1
|
#include <sal/log.hxx>#include <rtl/math.hxx>#include <o3tl/underlyingenumvalue.hxx>#include <osl/diagnose.h>#include <basegfx/matrix/b2dhommatrixtools.hxx>#include <basegfx/color/bcolormodifier.hxx>#include <vcl/ImageTree.hxx>#include <vcl/outdev.hxx>#include <vcl/alpha.hxx>#include <vcl/bitmapex.hxx>#include <vcl/svapp.hxx>#include <vcl/virdev.hxx>#include <vcl/settings.hxx>#include <vcl/BitmapMonochromeFilter.hxx>#include <salbmp.hxx>#include <salinst.hxx>#include <svdata.hxx>#include <bitmap/BitmapWriteAccess.hxx>#include <bitmap/BitmapMaskToAlphaFilter.hxx>#include <o3tl/any.hxx>#include <tools/stream.hxx>#include <vcl/filter/PngImageWriter.hxx>#include <com/sun/star/beans/XFastPropertySet.hpp>#include <memory>Go to the source code of this file.
Functions | |
| BitmapEx | createBlendFrame (const Size &rSize, sal_uInt8 nAlpha, Color aColorTopLeft, Color aColorBottomRight) |
| Create a blend frame as BitmapEx. More... | |
| BitmapEx | createBlendFrame (const Size &rSize, sal_uInt8 nAlpha, Color aColorTopLeft, Color aColorTopRight, Color aColorBottomRight, Color aColorBottomLeft) |
| Create a blend frame as BitmapEx. More... | |
| static Bitmap | DetectEdges (const Bitmap &rBmp) |
| BitmapEx createBlendFrame | ( | const Size & | rSize, |
| sal_uInt8 | nAlpha, | ||
| Color | aColorTopLeft, | ||
| Color | aColorBottomRight | ||
| ) |
Create a blend frame as BitmapEx.
| nAlpha | The blend value defines how strong the frame will be blended with the existing content, 255 == full coverage, 0 == no frame will be drawn |
| aColorTopLeft,aColorBottomRight | The colors defining the frame. These colors are linearly interpolated from aColorTopLeft and aColorBottomRight using the width and height of the area |
| rSize | The size of the frame in pixels |
Definition at line 1003 of file BitmapEx.cxx.
References createBlendFrame(), Size::Height(), Color::Merge(), and Size::Width().
Referenced by createBlendFrame(), ImplWin::DrawEntry(), and ImplListBoxWindow::DrawEntry().
| BitmapEx createBlendFrame | ( | const Size & | rSize, |
| sal_uInt8 | nAlpha, | ||
| Color | aColorTopLeft, | ||
| Color | aColorTopRight, | ||
| Color | aColorBottomRight, | ||
| Color | aColorBottomLeft | ||
| ) |
Create a blend frame as BitmapEx.
| nAlpha | The blend value defines how strong the frame will be blended with the existing content, 255 == full coverage, 0 == no frame will be drawn |
| aColorTopLeft,aColorBottomRight,aColorTopRight,aColorBottomLeft | The colors defining the frame. |
| rSize | The size of the frame in pixels |
Definition at line 1027 of file BitmapEx.cxx.
References BitmapEx::Clear(), COL_BLACK(), Bitmap::Erase(), Size::Height(), ImplGetBlendFrameCache(), BlendFrameCache::m_aLastColorBottomLeft, BlendFrameCache::m_aLastColorBottomRight, BlendFrameCache::m_aLastColorTopLeft, BlendFrameCache::m_aLastColorTopRight, BlendFrameCache::m_aLastResult, BlendFrameCache::m_aLastSize, BlendFrameCache::m_nLastAlpha, Color::Merge(), vcl::N24_BPP, vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::reset(), Size::Width(), x, and y.
Definition at line 1183 of file BitmapEx.cxx.
References COL_BLACK(), COL_WHITE(), Bitmap::Convert(), BitmapReadAccess::GetIndexFromData(), Bitmap::GetPrefMapMode(), Bitmap::GetPrefSize(), BitmapReadAccess::GetScanline(), Bitmap::GetSizePixel(), Size::Height(), Bitmap::IsEmpty(), N8BitGreys, vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::reset(), Bitmap::SetPrefMapMode(), Bitmap::SetPrefSize(), and Size::Width().
Referenced by BitmapEx::GetContour().