LibreOffice Module vcl (master)
1
|
#include <vcl/dllapi.h>
#include <vcl/alpha.hxx>
#include <vcl/Scanline.hxx>
#include <tools/color.hxx>
#include <tools/degree.hxx>
#include <sal/types.h>
Go to the source code of this file.
Classes | |
class | com::sun::star::uno::Reference< class > |
class | BitmapEx |
Namespaces | |
com::sun::star::rendering | |
com::sun::star::uno | |
basegfx | |
Enumerations | |
enum | TransparentType { TransparentType::NONE, TransparentType::Color, TransparentType::Bitmap } |
Functions | |
BitmapEx VCL_DLLPUBLIC | 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... | |
|
strong |
Enumerator | |
---|---|
NONE | |
Color | |
Bitmap |
Definition at line 37 of file bitmapex.hxx.
BitmapEx VCL_DLLPUBLIC 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 1164 of file BitmapEx.cxx.
References createBlendFrame(), Size::Height(), Color::Merge(), and Size::Width().
Referenced by createBlendFrame(), ImplListBoxWindow::DrawEntry(), and ImplWin::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 1188 of file BitmapEx.cxx.
References BitmapEx::Clear(), COL_BLACK, Bitmap::Erase(), BitmapReadAccess::GetScanline(), 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(), pContent, vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::reset(), BitmapReadAccess::SetPixelOnData(), Size::Width(), x, and y.