19 color2 = color2 * base / 0xFF;
20 color1 = color1 * (0xFF - base) / 0xFF;
22 return static_cast<sal_uInt8>(color1 + color2);
30 const tools::Long nHeight = aBitmap.GetSizePixel().Height();
32 Bitmap aResultBitmap(aBitmap.GetSizePixel(), 24);
59 aBitmap.ReassignWithSize(aResultBitmap);
sal_uInt8 GetLuminance() const
Size GetSizePixel() const
void SetPixel(tools::Long nY, tools::Long nX, const BitmapColor &rBitmapColor)
sal_uInt8 GetBlue() const
tools::Long Width() const
Bitmap GetBitmap(Color aTransparentReplaceColor) const
sal_uInt8 GetGreen() const
static sal_uInt8 lcl_getDuotoneColorComponent(sal_uInt8 base, sal_uInt16 color1, sal_uInt16 color2)
virtual BitmapEx execute(BitmapEx const &rBitmapEx) const override