LibreOffice Module vcl (master) 1
Classes | Namespaces | Functions
bitmapex.hxx File Reference
#include <vcl/dllapi.h>
#include <vcl/alpha.hxx>
#include <vcl/Scanline.hxx>
#include <tools/color.hxx>
#include <tools/degree.hxx>
#include <sal/types.h>
Include dependency graph for bitmapex.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  BitmapEx
 

Namespaces

namespace  com
 
namespace  com::sun
 
namespace  com::sun::star
 
namespace  com::sun::star::rendering
 
namespace  com::sun::star::uno
 
namespace  basegfx
 

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...
 

Function Documentation

◆ createBlendFrame() [1/2]

BitmapEx VCL_DLLPUBLIC createBlendFrame ( const Size rSize,
sal_uInt8  nAlpha,
Color  aColorTopLeft,
Color  aColorBottomRight 
)

Create a blend frame as BitmapEx.

Parameters
nAlphaThe blend value defines how strong the frame will be blended with the existing content, 255 == full coverage, 0 == no frame will be drawn
aColorTopLeft,aColorBottomRightThe colors defining the frame. These colors are linearly interpolated from aColorTopLeft and aColorBottomRight using the width and height of the area
rSizeThe 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().

◆ createBlendFrame() [2/2]

BitmapEx createBlendFrame ( const Size rSize,
sal_uInt8  nAlpha,
Color  aColorTopLeft,
Color  aColorTopRight,
Color  aColorBottomRight,
Color  aColorBottomLeft 
)

Create a blend frame as BitmapEx.

Parameters
nAlphaThe 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,aColorBottomLeftThe colors defining the frame.
rSizeThe 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.