11#ifndef INCLUDED_VCL_INC_BITMAP_BITMAPWRITEACCESS_HXX
12#define INCLUDED_VCL_INC_BITMAP_BITMAPWRITEACCESS_HXX
33 sal_uInt32 nSrcScanlineSize);
37 assert(mpBuffer &&
"Access is not valid!");
39 mpBuffer->maPalette = rPalette;
44 assert(mpBuffer &&
"Access is not valid!");
45 assert(
HasPalette() &&
"Bitmap has no palette!");
47 mpBuffer->maPalette[nColor] = rBitmapColor;
52 assert(mpBuffer &&
"Access is not valid!");
53 assert(nX < mpBuffer->
mnWidth &&
"x-coordinate out of range!");
54 assert(nY < mpBuffer->
mnHeight &&
"y-coordinate out of range!");
67 void SetFillColor(
const Color& rColor);
vcl::ScopedBitmapAccess< BitmapWriteAccess, AlphaMask, &AlphaMask::AcquireAlphaWriteAccess > AlphaScopedWriteAccess
vcl::ScopedBitmapAccess< BitmapWriteAccess, Bitmap, &Bitmap::AcquireWriteAccess > BitmapScopedWriteAccess
const sal_uInt8 * ConstScanline
Scanline GetScanline(tools::Long nY) const
friend class BitmapWriteAccess
std::optional< BitmapColor > mpLineColor
void SetPalette(const BitmapPalette &rPalette)
void SetPaletteColor(sal_uInt16 nColor, const BitmapColor &rBitmapColor)
void SetPixelIndex(tools::Long nY, tools::Long nX, sal_uInt8 cIndex)
BitmapWriteAccess()=delete
void SetPixel(tools::Long nY, tools::Long nX, const BitmapColor &rBitmapColor)
BitmapWriteAccess(const BitmapWriteAccess &)=delete
std::optional< BitmapColor > mpFillColor
BitmapWriteAccess & operator=(const BitmapWriteAccess &)=delete
This template handles BitmapAccess the RAII way.
void SetLineColor(const css::uno::Reference< css::beans::XPropertySet > &xGridProperties, sal_Int32 nColor)