22#include <osl/diagnose.h>
35 mrRefDevice( rRefDevice ),
36 mbBitmapContentIsCurrent( false ),
37 mbVDevContentIsCurrent( false )
73 "BitmapBackBuffer::getBitmapReference(): Both bitmap and VDev are valid?!" );
78 mpVDev->EnableMapMode(
false );
79 mpVDev->SetAntialiasing( AntialiasingFlags::Enable );
80 const Point aEmptyPoint;
82 mpVDev->GetOutputSizePixel() );
99 mpVDev->EnableMapMode(
false );
100 mpVDev->SetAntialiasing( AntialiasingFlags::Enable );
101 aSize =
mpVDev->GetOutputSizePixel();
119 "BitmapBackBuffer::createVDev(): Unable to create VirtualDevice" );
129 "BitmapBackBuffer::updateVDev(): Both bitmap and VDev are valid?!" );
134 mpVDev->EnableMapMode(
false );
135 mpVDev->SetAntialiasing( AntialiasingFlags::Enable );
136 const Point aEmptyPoint;
bool Erase(const Color &rFillColor)
const Size & GetSizePixel() const
static VclPtr< reference_type > Create(Arg &&... arg)
bool mbVDevContentIsCurrent
When true, and mpVDev is non-NULL, the VDev contains the last valid content.
BitmapEx & getBitmapReference()
Exposing our internal bitmap.
BitmapBackBuffer(const BitmapEx &rBitmap, const OutputDevice &rRefDevice)
Create a backbuffer for given reference device.
const OutputDevice & mrRefDevice
virtual ~BitmapBackBuffer() override
VclPtr< VirtualDevice > mpVDev
virtual OutputDevice & getOutDev() override
::canvas::vcltools::VCLObject< BitmapEx > maBitmap
Size getBitmapSizePixel() const
bool mbBitmapContentIsCurrent
When true, the bitmap contains the last valid content.
void clear()
Clear the underlying bitmap to white, all transparent.
constexpr ::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)