31 assert(pRead->
HasPalette() &&
"only supposed to be called with 1-bit mask");
33 for (sal_Int32 nY = 0; nY < sal_Int32(aSize.
Height()); ++nY)
35 Scanline pScanline = pWrite->GetScanline(nY);
37 for (sal_Int32 nX = 0; nX < sal_Int32(aSize.
Width()); ++nX)
44 else if (aBmpColor ==
Color(0, 0, 1))
48 pWrite->SetPixelOnData(pScanline, nX, aBmpColor);
Bitmap GetBitmap(Color aTransparentReplaceColor) const
const Size & GetSizePixel() const
sal_uInt16 GetPaletteEntryCount() const
virtual BitmapEx execute(BitmapEx const &rBitmapEx) const override
Convert a 1-bit mask to an alpha bitmap.
BitmapColor GetPixelFromData(const sal_uInt8 *pData, tools::Long nX) const
Scanline GetScanline(tools::Long nY) const
static const BitmapPalette & GetGreyPalette(int nEntries)
constexpr tools::Long Height() const
constexpr tools::Long Width() const
constexpr ::Color COL_WHITE(0xFF, 0xFF, 0xFF)
constexpr ::Color COL_ALPHA_OPAQUE(0xff, 0xff, 0xff)
constexpr ::Color COL_ALPHA_TRANSPARENT(0x00, 0x00, 0x00)
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)