20#ifndef INCLUDED_VCL_INC_WIN_SALBMP_H
21#define INCLUDED_VCL_INC_WIN_SALBMP_H
71 virtual bool Create(
const css::uno::Reference< css::rendering::XBitmapCanvas >& rBitmapCanvas,
73 bool bMask =
false )
override;
85 virtual bool Scale(
const double& rScaleX,
const double& rScaleY,
BmpScaleFlag nScaleFlag )
override;
95 template<
class T,
class... Args>
98 std::shared_ptr<T> r = std::make_shared<T>(
manager, std::forward<Args>(
args)...);
101 if(r->calculateCombinedHoldCyclesInSeconds() > 0)
std::shared_ptr< Gdiplus::Bitmap > ImplGetGdiPlusBitmap(const WinSalBitmap *pAlphaSource=nullptr) const
virtual bool Scale(const double &rScaleX, const double &rScaleY, BmpScaleFlag nScaleFlag) override
virtual BitmapBuffer * AcquireBuffer(BitmapAccessMode nMode) override
virtual sal_uInt16 GetBitCount() const override
virtual ~WinSalBitmap() override
virtual bool Create(const SalBitmap &rSalBmpImpl, vcl::PixelFormat eNewPixelFormat) override
virtual bool Replace(const Color &rSearchColor, const Color &rReplaceColor, sal_uInt8 nTol) override
HBITMAP ImplGethDDB() const
std::shared_ptr< Gdiplus::Bitmap > ImplCreateGdiPlusBitmap()
virtual bool Create(const SalBitmap &rSalBmpImpl) override
static HANDLE ImplCopyDIBOrDDB(HANDLE hHdl, bool bDIB)
std::shared_ptr< T > getSystemDependentData() const
virtual void ReleaseBuffer(BitmapBuffer *pBuffer, BitmapAccessMode nMode) override
virtual void Destroy() override
virtual bool Create(const css::uno::Reference< css::rendering::XBitmapCanvas > &rBitmapCanvas, Size &rSize, bool bMask=false) override
virtual bool Create(const SalBitmap &rSalBmpImpl, SalGraphics *pGraphics) override
HGLOBAL ImplGethDIB() const
virtual bool GetSystemData(BitmapSystemData &rData) override
std::shared_ptr< T > addOrReplaceSystemDependentData(basegfx::SystemDependentDataManager &manager, Args &&... args) const
static HGLOBAL ImplCreateDIB(const Size &rSize, vcl::PixelFormat ePixelFormat, const BitmapPalette &rPal)
static sal_uInt16 ImplGetDIBColorCount(HGLOBAL hDIB)
virtual Size GetSize() const override
virtual bool Create(const Size &rSize, vcl::PixelFormat ePixelFormat, const BitmapPalette &rPal) override
bool Create(HANDLE hBitmap)
std::shared_ptr< Gdiplus::Bitmap > ImplCreateGdiPlusBitmap(const WinSalBitmap &rAlphaSource)
virtual bool ScalingSupported() const override
void addOrReplaceSystemDependentData(SystemDependentData_SharedPtr &rData)
SystemDependentData_SharedPtr getSystemDependentData(size_t hash_code) const
rtl::Reference< ParseManager > manager
std::shared_ptr< SystemDependentData > SystemDependentData_SharedPtr
PixelFormat
Pixel format of the bitmap in bits per pixel.