LibreOffice Module vcl (master) 1
Namespaces | Functions
BitmapTools.cxx File Reference
#include <sal/config.h>
#include <array>
#include <utility>
#include <tools/helpers.hxx>
#include <vcl/BitmapTools.hxx>
#include <sal/log.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/seqstream.hxx>
#include <vcl/canvastools.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <com/sun/star/graphic/SvgTools.hpp>
#include <com/sun/star/graphic/Primitive2DTools.hpp>
#include <drawinglayer/primitive2d/baseprimitive2d.hxx>
#include <com/sun/star/rendering/XIntegerReadOnlyBitmap.hpp>
#include <vcl/dibtools.hxx>
#include <vcl/settings.hxx>
#include <vcl/svapp.hxx>
#include <vcl/virdev.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <tools/fract.hxx>
#include <tools/stream.hxx>
#include <bitmap/BitmapWriteAccess.hxx>
Include dependency graph for BitmapTools.cxx:

Go to the source code of this file.

Namespaces

namespace  vcl
 
namespace  vcl::bitmap
 

Functions

BitmapEx vcl::bitmap::loadFromName (const OUString &rFileName, const ImageLoadFlags eFlags)
 
void vcl::bitmap::loadFromSvg (SvStream &rStream, const OUString &sPath, BitmapEx &rBitmapEx, double fScalingFactor)
 
BitmapEx vcl::bitmap::CreateFromData (sal_uInt8 const *pData, sal_Int32 nWidth, sal_Int32 nHeight, sal_Int32 nStride, sal_Int8 nBitCount, bool bReversColors, bool bReverseAlpha)
 Copy block of image data into the bitmap. More...
 
BitmapEx vcl::bitmap::CreateFromData (RawBitmap &&rawBitmap)
 Copy block of image data into the bitmap. More...
 
BitmapEx vcl::bitmap::CanvasTransformBitmap (const BitmapEx &rBitmap, const ::basegfx::B2DHomMatrix &rTransform, ::basegfx::B2DRectangle const &rDestRect, ::basegfx::B2DHomMatrix const &rLocalTransform)
 
void vcl::bitmap::DrawAlphaBitmapAndAlphaGradient (BitmapEx &rBitmapEx, bool bFixedTransparence, float fTransparence, AlphaMask &rNewMask)
 
void vcl::bitmap::DrawAndClipBitmap (const Point &rPos, const Size &rSize, const BitmapEx &rBitmap, BitmapEx &aBmpEx, basegfx::B2DPolyPolygon const &rClipPath)
 
css::uno::Sequence< sal_Int8vcl::bitmap::GetMaskDIB (BitmapEx const &aBmpEx)
 
static bool vcl::bitmap::readAlpha (BitmapReadAccess const *pAlphaReadAcc, tools::Long nY, const tools::Long nWidth, unsigned char *data, tools::Long nOff)
 
void vcl::bitmap::CanvasCairoExtractBitmapData (BitmapEx const &aBmpEx, Bitmap &aBitmap, unsigned char *&data, bool &bHasAlpha, tools::Long &rnWidth, tools::Long &rnHeight)
 
uno::Sequence< sal_Int8vcl::bitmap::CanvasExtractBitmapData (BitmapEx const &rBitmapEx, const geometry::IntegerRectangle2D &rect)
 
BitmapEx vcl::bitmap::createHistorical8x8FromArray (std::array< sal_uInt8, 64 > const &pArray, Color aColorPix, Color aColorBack)
 
bool vcl::bitmap::isHistorical8x8 (const BitmapEx &rBitmapEx, Color &o_rBack, Color &o_rFront)
 
sal_uInt8 vcl::bitmap::unpremultiply (sal_uInt8 c, sal_uInt8 a)
 
static constexpr sal_uInt8 vcl::bitmap::unpremultiplyImpl (sal_uInt8 c, sal_uInt8 a)
 
sal_uInt8 vcl::bitmap::premultiply (sal_uInt8 c, sal_uInt8 a)
 
static constexpr sal_uInt8 vcl::bitmap::premultiplyImpl (sal_uInt8 c, sal_uInt8 a)
 
template<int... Is>
static constexpr std::array< sal_uInt8, 256 > vcl::bitmap::make_unpremultiply_table_row_ (int a, std::integer_sequence< int, Is... >)
 
template<int... Is>
static constexpr lookup_table vcl::bitmap::make_unpremultiply_table_ (std::integer_sequence< int, Is... >)
 
lookup_table const & vcl::bitmap::get_unpremultiply_table ()
 
template<int... Is>
static constexpr std::array< sal_uInt8, 256 > vcl::bitmap::make_premultiply_table_row_ (int a, std::integer_sequence< int, Is... >)
 
template<int... Is>
static constexpr lookup_table vcl::bitmap::make_premultiply_table_ (std::integer_sequence< int, Is... >)
 
lookup_table const & vcl::bitmap::get_premultiply_table ()
 
bool vcl::bitmap::convertBitmap32To24Plus8 (BitmapEx const &rInput, BitmapEx &rResult)
 
Bitmap vcl::bitmap::GetDownsampledBitmap (Size const &rDstSizeTwip, Point const &rSrcPt, Size const &rSrcSz, Bitmap const &rBmp, tools::Long nMaxBmpDPIX, tools::Long nMaxBmpDPIY)
 Retrieve downsampled and cropped bitmap. More...